Class: XCResult::ActionTestAttachment

Inherits:
AbstractObject show all
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

Attributes inherited from AbstractObject

#type

Instance Method Summary collapse

Methods inherited from AbstractObject

#fetch_value, #fetch_values

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.timestamp = Time.parse(fetch_value(data, 'timestamp')) if data['timestamp']
  self. = 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

#filenameObject

Returns the value of attribute filename.



505
506
507
# File 'lib/xcresult/models.rb', line 505

def filename
  @filename
end

#in_activity_identifierObject

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

#lifetimeObject

Returns the value of attribute lifetime.



503
504
505
# File 'lib/xcresult/models.rb', line 503

def lifetime
  @lifetime
end

#nameObject

Returns the value of attribute name.



500
501
502
# File 'lib/xcresult/models.rb', line 500

def name
  @name
end

#payload_refObject

Returns the value of attribute payload_ref.



506
507
508
# File 'lib/xcresult/models.rb', line 506

def payload_ref
  @payload_ref
end

#payload_sizeObject

Returns the value of attribute payload_size.



507
508
509
# File 'lib/xcresult/models.rb', line 507

def payload_size
  @payload_size
end

#timestampObject

Returns the value of attribute timestamp.



501
502
503
# File 'lib/xcresult/models.rb', line 501

def timestamp
  @timestamp
end

#uniform_type_identifierObject

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_infoObject

Returns the value of attribute user_info.



502
503
504
# File 'lib/xcresult/models.rb', line 502

def 
  @user_info
end