Class: Fabricio::Model::Issue

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


23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/fabricio/models/issue.rb', line 23

def initialize(attributes)
  @id = attributes['id']
  @displayId = attributes['displayId']
  @externalId = attributes['externalId']
  @title = attributes['title']
  @subtitle = attributes['subtitle']
  @createdAt = attributes['createdAt']
  @type = attributes['type']
  @state = attributes['state']
  @latestSessionId = attributes['latestSessionId']
  @occurrenceCount = attributes['occurrenceCount']
  @impactedDevices = attributes['impactedDevices']
  @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

#createdAtObject (readonly)

Returns the value of attribute createdAt.



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

def createdAt
  @createdAt
end

#displayIdObject (readonly)

Returns the value of attribute displayId.



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

def displayId
  @displayId
end

#externalIdObject (readonly)

Returns the value of attribute externalId.



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

def externalId
  @externalId
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#impactedDevicesObject (readonly)

Returns the value of attribute impactedDevices.



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

def impactedDevices
  @impactedDevices
end

#latestSessionIdObject (readonly)

Returns the value of attribute latestSessionId.



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

def latestSessionId
  @latestSessionId
end

#occurrenceCountObject (readonly)

Returns the value of attribute occurrenceCount.



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

def occurrenceCount
  @occurrenceCount
end

#stateObject (readonly)

Returns the value of attribute state.



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

def state
  @state
end

#subtitleObject (readonly)

Returns the value of attribute subtitle.



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

def subtitle
  @subtitle
end

#titleObject (readonly)

Returns the value of attribute title.



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

def title
  @title
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end