# File lib/fog/identity/openstack/v3/models/roles.rb, line 23 def find_by_id(id) cached_role = find { |role| role.id == id } return cached_role if cached_role role_hash = service.get_role(id).body['role'] Fog::Identity::OpenStack::V3.role.new( role_hash.merge(:service => service) ) end