Class: Fabricio::Model::Build

Inherits:
AbstractModel show all
Defined in:
lib/fabricio/models/build.rb

Overview

This model represents an application build

Instance Attribute Summary collapse

Attributes inherited from AbstractModel

#json

Instance Method Summary collapse

Methods inherited from AbstractModel

#method_missing

Constructor Details

#initialize(attributes) ⇒ Fabricio::Model::Build

Returns a Build model object

Parameters:

  • attributes (Hash)


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_numberObject (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_atObject (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

#idObject (readonly)

Returns the value of attribute id.



7
8
9
# File 'lib/fabricio/models/build.rb', line 7

def id
  @id
end

#release_notesObject (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

#versionObject (readonly)

Returns the value of attribute version.



7
8
9
# File 'lib/fabricio/models/build.rb', line 7

def version
  @version
end