Class: DIT3::Api::Model::Tenant
- Inherits:
-
Object
- Object
- DIT3::Api::Model::Tenant
- Defined in:
- lib/dit3/api/model/tenant.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Tenant
constructor
A new instance of Tenant.
Constructor Details
#initialize(hash) ⇒ Tenant
Returns a new instance of Tenant.
5 6 7 |
# File 'lib/dit3/api/model/tenant.rb', line 5 def initialize hash @name = hash['name'] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/dit3/api/model/tenant.rb', line 3 def name @name end |