# File lib/openstack/identity/connection_v3.rb, line 4 def list_tenants response = @connection.req('GET', '/projects') tenants_hash = JSON.parse(response.body)['projects'] tenants_hash.map { |res| OpenStack::Identity::Tenant.new(res) } end