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.



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

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.



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

def description
  @description
end

#fieldsObject

Returns the value of attribute fields.



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

def fields
  @fields
end

#functionsObject

Returns the value of attribute functions.



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

def functions
  @functions
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#parentsObject

Returns the value of attribute parents.



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

def parents
  @parents
end

#summaryObject

Returns the value of attribute summary.



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

def summary
  @summary
end