Class: XCResult::Reference
- Inherits:
-
AbstractObject
- Object
- AbstractObject
- XCResult::Reference
- Defined in:
- lib/xcresult/models.rb
Overview
-
Reference
-
Kind: object
-
Properties: + id: String + targetType: TypeDefinition?
-
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#target_type ⇒ Object
Returns the value of attribute target_type.
Attributes inherited from AbstractObject
Instance Method Summary collapse
-
#initialize(data) ⇒ Reference
constructor
A new instance of Reference.
Methods inherited from AbstractObject
Constructor Details
#initialize(data) ⇒ Reference
Returns a new instance of Reference.
314 315 316 317 318 |
# File 'lib/xcresult/models.rb', line 314 def initialize(data) self.id = fetch_value(data, 'id') self.target_type = TypeDefinition.new(data['targetType']) if data['targetType'] super end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
312 313 314 |
# File 'lib/xcresult/models.rb', line 312 def id @id end |
#target_type ⇒ Object
Returns the value of attribute target_type.
313 314 315 |
# File 'lib/xcresult/models.rb', line 313 def target_type @target_type end |