Class: XCResult::ActionTestActivitySummary
- Inherits:
-
AbstractObject
- Object
- AbstractObject
- XCResult::ActionTestActivitySummary
- Defined in:
- lib/xcresult/models.rb
Overview
-
ActionTestActivitySummary
-
Kind: object
-
Properties: + title: String + activityType: String + uuid: String + start: Date? + finish: Date? + attachments: [ActionTestAttachment] + subactivities: [ActionTestActivitySummary]
-
Instance Attribute Summary collapse
-
#activity_type ⇒ Object
Returns the value of attribute activity_type.
-
#attachments ⇒ Object
Returns the value of attribute attachments.
-
#finish ⇒ Object
Returns the value of attribute finish.
-
#start ⇒ Object
Returns the value of attribute start.
-
#subactivities ⇒ Object
Returns the value of attribute subactivities.
-
#title ⇒ Object
Returns the value of attribute title.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Attributes inherited from AbstractObject
Instance Method Summary collapse
-
#initialize(data) ⇒ ActionTestActivitySummary
constructor
A new instance of ActionTestActivitySummary.
Methods inherited from AbstractObject
Constructor Details
#initialize(data) ⇒ ActionTestActivitySummary
Returns a new instance of ActionTestActivitySummary.
470 471 472 473 474 475 476 477 478 479 480 481 482 483 |
# File 'lib/xcresult/models.rb', line 470 def initialize(data) self.title = fetch_value(data, 'title') self.activity_type = fetch_value(data, 'activityType') self.uuid = fetch_value(data, 'uuid') self.start = Time.parse(fetch_value(data, 'start')) if data['start'] self.finish = Time.parse(fetch_value(data, 'finish')) if data['finish'] self. = fetch_values(data, 'attachments').map do || ActionTestAttachment.new() end self.subactivities = fetch_values(data, 'subactivities').map do |summary_data| ActionTestActivitySummary.new(summary_data) end super(data) end |
Instance Attribute Details
#activity_type ⇒ Object
Returns the value of attribute activity_type.
464 465 466 |
# File 'lib/xcresult/models.rb', line 464 def activity_type @activity_type end |
#attachments ⇒ Object
Returns the value of attribute attachments.
468 469 470 |
# File 'lib/xcresult/models.rb', line 468 def @attachments end |
#finish ⇒ Object
Returns the value of attribute finish.
467 468 469 |
# File 'lib/xcresult/models.rb', line 467 def finish @finish end |
#start ⇒ Object
Returns the value of attribute start.
466 467 468 |
# File 'lib/xcresult/models.rb', line 466 def start @start end |
#subactivities ⇒ Object
Returns the value of attribute subactivities.
469 470 471 |
# File 'lib/xcresult/models.rb', line 469 def subactivities @subactivities end |
#title ⇒ Object
Returns the value of attribute title.
463 464 465 |
# File 'lib/xcresult/models.rb', line 463 def title @title end |
#uuid ⇒ Object
Returns the value of attribute uuid.
465 466 467 |
# File 'lib/xcresult/models.rb', line 465 def uuid @uuid end |