Class: XCResult::ActionTestAttachment
- Inherits:
-
AbstractObject
- Object
- AbstractObject
- XCResult::ActionTestAttachment
- Defined in:
- lib/xcresult/models.rb
Overview
-
ActionTestAttachment
-
Kind: object
-
Properties: + uniformTypeIdentifier: String + name: String? + timestamp: Date? + userInfo: SortedKeyValueArray? + lifetime: String + inActivityIdentifier: Int + filename: String? + payloadRef: Reference? + payloadSize: Int
-
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#in_activity_identifier ⇒ Object
Returns the value of attribute in_activity_identifier.
-
#lifetime ⇒ Object
Returns the value of attribute lifetime.
-
#name ⇒ Object
Returns the value of attribute name.
-
#payload_ref ⇒ Object
Returns the value of attribute payload_ref.
-
#payload_size ⇒ Object
Returns the value of attribute payload_size.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#uniform_type_identifier ⇒ Object
Returns the value of attribute uniform_type_identifier.
-
#user_info ⇒ Object
Returns the value of attribute user_info.
Attributes inherited from AbstractObject
Instance Method Summary collapse
-
#initialize(data) ⇒ ActionTestAttachment
constructor
A new instance of ActionTestAttachment.
Methods inherited from AbstractObject
Constructor Details
#initialize(data) ⇒ ActionTestAttachment
Returns a new instance of ActionTestAttachment.
508 509 510 511 512 513 514 515 516 517 518 519 |
# File 'lib/xcresult/models.rb', line 508 def initialize(data) self.uniform_type_identifier = fetch_value(data, 'uniformTypeIdentifier') self.name = fetch_value(data, 'name') self. = Time.parse(fetch_value(data, 'timestamp')) if data['timestamp'] self.user_info = SortedKeyValueArray.new(data['userInfo']) if data['userInfo'] self.lifetime = fetch_value(data, 'lifetime') self.in_activity_identifier = fetch_value(data, 'inActivityIdentifier').to_i self.filename = fetch_value(data, 'filename') self.payload_ref = Reference.new(data['payloadRef']) if data['payloadRef'] self.payload_size = fetch_value(data, 'payloadSize').to_i super(data) end |
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename.
505 506 507 |
# File 'lib/xcresult/models.rb', line 505 def filename @filename end |
#in_activity_identifier ⇒ Object
Returns the value of attribute in_activity_identifier.
504 505 506 |
# File 'lib/xcresult/models.rb', line 504 def in_activity_identifier @in_activity_identifier end |
#lifetime ⇒ Object
Returns the value of attribute lifetime.
503 504 505 |
# File 'lib/xcresult/models.rb', line 503 def lifetime @lifetime end |
#name ⇒ Object
Returns the value of attribute name.
500 501 502 |
# File 'lib/xcresult/models.rb', line 500 def name @name end |
#payload_ref ⇒ Object
Returns the value of attribute payload_ref.
506 507 508 |
# File 'lib/xcresult/models.rb', line 506 def payload_ref @payload_ref end |
#payload_size ⇒ Object
Returns the value of attribute payload_size.
507 508 509 |
# File 'lib/xcresult/models.rb', line 507 def payload_size @payload_size end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
501 502 503 |
# File 'lib/xcresult/models.rb', line 501 def @timestamp end |
#uniform_type_identifier ⇒ Object
Returns the value of attribute uniform_type_identifier.
499 500 501 |
# File 'lib/xcresult/models.rb', line 499 def uniform_type_identifier @uniform_type_identifier end |
#user_info ⇒ Object
Returns the value of attribute user_info.
502 503 504 |
# File 'lib/xcresult/models.rb', line 502 def user_info @user_info end |