Class: Fabricio::Model::IssueSession

Inherits:
AbstractModel show all
Defined in:
lib/fabricio/models/issue_session.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



17
18
19
20
21
22
23
24
# File 'lib/fabricio/models/issue_session.rb', line 17

def initialize(attributes)
  @id = attributes['session_id']
  @created_at = attributes['created_at']
  @header_link = attributes['header_link']
  @next_session_id = attributes['next_session_id']
  @prev_session_id = attributes['prev_session_id']
  @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

#created_atObject (readonly)

Returns the value of attribute created_at.



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

def created_at
  @created_at
end

Returns the value of attribute header_link.



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

def header_link
  @header_link
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end