Class: Fabricio::Model::Build
- Inherits:
-
AbstractModel
- Object
- AbstractModel
- Fabricio::Model::Build
- Defined in:
- lib/fabricio/models/build.rb
Overview
This model represents an application build
Instance Attribute Summary collapse
-
#build_number ⇒ Object
readonly
Returns the value of attribute build_number.
-
#distributed_at ⇒ Object
readonly
Returns the value of attribute distributed_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#release_notes ⇒ Object
readonly
Returns the value of attribute release_notes.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Attributes inherited from AbstractModel
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Fabricio::Model::Build
constructor
Returns a Build model object.
Methods inherited from AbstractModel
Constructor Details
#initialize(attributes) ⇒ Fabricio::Model::Build
Returns a Build model object
13 14 15 16 17 18 19 20 |
# File 'lib/fabricio/models/build.rb', line 13 def initialize(attributes) @id = attributes['id'] @version = attributes['build_version']['display_version'] @build_number = attributes['build_version']['build_version'] @release_notes = attributes['release_notes_summary'] @distributed_at = attributes['distributed_at'] @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
#build_number ⇒ Object (readonly)
Returns the value of attribute build_number.
7 8 9 |
# File 'lib/fabricio/models/build.rb', line 7 def build_number @build_number end |
#distributed_at ⇒ Object (readonly)
Returns the value of attribute distributed_at.
7 8 9 |
# File 'lib/fabricio/models/build.rb', line 7 def distributed_at @distributed_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/fabricio/models/build.rb', line 7 def id @id end |
#release_notes ⇒ Object (readonly)
Returns the value of attribute release_notes.
7 8 9 |
# File 'lib/fabricio/models/build.rb', line 7 def release_notes @release_notes end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
7 8 9 |
# File 'lib/fabricio/models/build.rb', line 7 def version @version end |