Class: Fabricio::Model::Organization
- Inherits:
-
AbstractModel
- Object
- AbstractModel
- Fabricio::Model::Organization
- Defined in:
- lib/fabricio/models/organization.rb
Overview
This model represents an organization
Instance Attribute Summary collapse
-
#alias ⇒ Object
readonly
Returns the value of attribute alias.
-
#apps_counts ⇒ Object
readonly
Returns the value of attribute apps_counts.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from AbstractModel
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Fabricio::Model::Organization
constructor
Returns a Build model object.
Methods inherited from AbstractModel
Constructor Details
#initialize(attributes) ⇒ Fabricio::Model::Organization
Returns a Build model object
13 14 15 16 17 18 19 |
# File 'lib/fabricio/models/organization.rb', line 13 def initialize(attributes) @id = attributes['id'] @alias = attributes['alias'] @name = attributes['name'] @apps_counts = attributes['apps_counts'] @json = attributes end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Fabricio::Model::AbstractModel
Instance Attribute Details
#alias ⇒ Object (readonly)
Returns the value of attribute alias.
7 8 9 |
# File 'lib/fabricio/models/organization.rb', line 7 def alias @alias end |
#apps_counts ⇒ Object (readonly)
Returns the value of attribute apps_counts.
7 8 9 |
# File 'lib/fabricio/models/organization.rb', line 7 def apps_counts @apps_counts end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/fabricio/models/organization.rb', line 7 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/fabricio/models/organization.rb', line 7 def name @name end |