Class: TypeStruct

Inherits:
Object show all
Defined in:
lib/code_generator/api_converter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ TypeStruct

Returns a new instance of TypeStruct.



349
350
351
352
353
354
355
# File 'lib/code_generator/api_converter.rb', line 349

def initialize(params)
  params.each do |k, v|
    if self.respond_to?(k.to_sym)
      instance_variable_set("@#{k}".to_sym, v)
    end
  end
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



347
348
349
# File 'lib/code_generator/api_converter.rb', line 347

def description
  @description
end

#fieldsObject

Returns the value of attribute fields.



344
345
346
# File 'lib/code_generator/api_converter.rb', line 344

def fields
  @fields
end

#functionsObject

Returns the value of attribute functions.



345
346
347
# File 'lib/code_generator/api_converter.rb', line 345

def functions
  @functions
end

#nameObject

Returns the value of attribute name.



342
343
344
# File 'lib/code_generator/api_converter.rb', line 342

def name
  @name
end

#parentsObject

Returns the value of attribute parents.



343
344
345
# File 'lib/code_generator/api_converter.rb', line 343

def parents
  @parents
end

#summaryObject

Returns the value of attribute summary.



346
347
348
# File 'lib/code_generator/api_converter.rb', line 346

def summary
  @summary
end