Class: XCResult::TypeDefinition
- Inherits:
-
AbstractObject
- Object
- AbstractObject
- XCResult::TypeDefinition
- Defined in:
- lib/xcresult/models.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.
329 330 331 332 333 |
# File 'lib/xcresult/models.rb', line 329 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.
327 328 329 |
# File 'lib/xcresult/models.rb', line 327 def name @name end |
#supertype ⇒ Object
Returns the value of attribute supertype.
328 329 330 |
# File 'lib/xcresult/models.rb', line 328 def supertype @supertype end |