Class: Rafflesia::PendingOrganization
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::PendingOrganization
- Defined in:
- lib/rafflesia/auth/pending_organization.rb
Constant Summary collapse
- HASH_ATTRS =
{ id: :id, name: :name }.freeze
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(json) ⇒ PendingOrganization
constructor
A new instance of PendingOrganization.
Constructor Details
#initialize(json) ⇒ PendingOrganization
Returns a new instance of PendingOrganization.
17 18 19 20 21 22 |
# File 'lib/rafflesia/auth/pending_organization.rb', line 17 def initialize(json) super() hash = self.class.normalize(json) @id = hash[:id] @name = hash[:name] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
13 14 15 |
# File 'lib/rafflesia/auth/pending_organization.rb', line 13 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
13 14 15 |
# File 'lib/rafflesia/auth/pending_organization.rb', line 13 def name @name end |