Class: Trainer::XCResult::TypeDefinition

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

Overview

  • TypeDefinition

    • Kind: object

    • Properties: + name: String + supertype: 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) ⇒ TypeDefinition

Returns a new instance of TypeDefinition.



304
305
306
307
308
# File 'trainer/lib/trainer/xcresult.rb', line 304

def initialize(data)
  self.name = fetch_value(data, "name")
  self.supertype = TypeDefinition.new(data["supertype"]) if data["supertype"]
  super
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



302
303
304
# File 'trainer/lib/trainer/xcresult.rb', line 302

def name
  @name
end

#supertypeObject

Returns the value of attribute supertype.



303
304
305
# File 'trainer/lib/trainer/xcresult.rb', line 303

def supertype
  @supertype
end