Class: TypeEnum

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ TypeEnum

Returns a new instance of TypeEnum.



316
317
318
319
320
321
322
# File 'lib/code_generator/api_converter.rb', line 316

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

#casesObject

Returns the value of attribute cases.



312
313
314
# File 'lib/code_generator/api_converter.rb', line 312

def cases
  @cases
end

#descriptionObject

Returns the value of attribute description.



314
315
316
# File 'lib/code_generator/api_converter.rb', line 314

def description
  @description
end

#nameObject

Returns the value of attribute name.



310
311
312
# File 'lib/code_generator/api_converter.rb', line 310

def name
  @name
end

#parentsObject

Returns the value of attribute parents.



311
312
313
# File 'lib/code_generator/api_converter.rb', line 311

def parents
  @parents
end

#summaryObject

Returns the value of attribute summary.



313
314
315
# File 'lib/code_generator/api_converter.rb', line 313

def summary
  @summary
end