Class: Fabricio::Model::App
- Inherits:
-
AbstractModel
- Object
- AbstractModel
- Fabricio::Model::App
- Defined in:
- lib/fabricio/models/app.rb
Overview
This model represents an application
Instance Attribute Summary collapse
-
#bundle_id ⇒ Object
readonly
Returns the value of attribute bundle_id.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#icon_url ⇒ Object
readonly
Returns the value of attribute icon_url.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#platform ⇒ Object
readonly
Returns the value of attribute platform.
Attributes inherited from AbstractModel
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Fabricio::Model::App
constructor
Returns an App model object.
Methods inherited from AbstractModel
Constructor Details
#initialize(attributes) ⇒ Fabricio::Model::App
Returns an App model object
13 14 15 16 17 18 19 20 21 |
# File 'lib/fabricio/models/app.rb', line 13 def initialize(attributes) @id = attributes['id'] @name = attributes['name'] @bundle_id = attributes['bundle_identifier'] @created_at = attributes['created_at'] @platform = attributes['platform'] @icon_url = attributes['icon_url'] @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
#bundle_id ⇒ Object (readonly)
Returns the value of attribute bundle_id.
7 8 9 |
# File 'lib/fabricio/models/app.rb', line 7 def bundle_id @bundle_id end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
7 8 9 |
# File 'lib/fabricio/models/app.rb', line 7 def created_at @created_at end |
#icon_url ⇒ Object (readonly)
Returns the value of attribute icon_url.
7 8 9 |
# File 'lib/fabricio/models/app.rb', line 7 def icon_url @icon_url end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/fabricio/models/app.rb', line 7 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/fabricio/models/app.rb', line 7 def name @name end |
#platform ⇒ Object (readonly)
Returns the value of attribute platform.
7 8 9 |
# File 'lib/fabricio/models/app.rb', line 7 def platform @platform end |