Method: XCResult::TypeDefinition#initialize

Defined in:
lib/xcresult/models.rb

#initialize(data) ⇒ TypeDefinition

Returns a new instance of TypeDefinition.



334
335
336
337
338
# File 'lib/xcresult/models.rb', line 334

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