Class: Trainer::XCResult::Reference

Inherits:
AbstractObject show all
Defined in:
trainer/lib/trainer/xcresult.rb

Overview

  • Reference

    • Kind: object

    • Properties: + id: String + targetType: TypeDefinition?

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) ⇒ Reference

Returns a new instance of Reference.



293
294
295
296
297
# File 'trainer/lib/trainer/xcresult.rb', line 293

def initialize(data)
  self.id = fetch_value(data, "id")
  self.target_type = TypeDefinition.new(data["targetType"]) if data["targetType"]
  super
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



291
292
293
# File 'trainer/lib/trainer/xcresult.rb', line 291

def id
  @id
end

#target_typeObject

Returns the value of attribute target_type.



292
293
294
# File 'trainer/lib/trainer/xcresult.rb', line 292

def target_type
  @target_type
end