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