class OpenStack::Keystone::Public::Tenant

An OpenStack Tenant (“public view”)

Attributes

Public Class Methods

find_all_by_name(name) click to toggle source

The first tenant with a given name (accessible by the current authenticated user…)

Attributes

  • name - A string

# File lib/open_stack/keystone/public/tenant.rb, line 69
def self.find_all_by_name(name)
  all.reject! { |tenant| tenant.name != name }
end
find_by_name(name) click to toggle source

List of tenants with a given name (accessible by the current authenticated user…)

Attributes

  • name - A string

# File lib/open_stack/keystone/public/tenant.rb, line 61
def self.find_by_name(name)
  all.detect { |tenant| tenant.name == name }
end