Class: Trainer::XCResult::TypeDefinition
- Inherits:
-
AbstractObject
- Object
- AbstractObject
- Trainer::XCResult::TypeDefinition
- Defined in:
- trainer/lib/trainer/xcresult.rb
Overview
-
TypeDefinition
-
Kind: object
-
Properties: + name: String + supertype: TypeDefinition?
-
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#supertype ⇒ Object
Returns the value of attribute supertype.
Attributes inherited from AbstractObject
Instance Method Summary collapse
-
#initialize(data) ⇒ TypeDefinition
constructor
A new instance of TypeDefinition.
Methods inherited from AbstractObject
Constructor Details
#initialize(data) ⇒ TypeDefinition
Returns a new instance of TypeDefinition.
308 309 310 311 312 |
# File 'trainer/lib/trainer/xcresult.rb', line 308 def initialize(data) self.name = fetch_value(data, "name") self.supertype = TypeDefinition.new(data["supertype"]) if data["supertype"] super end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
306 307 308 |
# File 'trainer/lib/trainer/xcresult.rb', line 306 def name @name end |
#supertype ⇒ Object
Returns the value of attribute supertype.
307 308 309 |
# File 'trainer/lib/trainer/xcresult.rb', line 307 def supertype @supertype end |