Class: EnumCase

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ EnumCase

Returns a new instance of EnumCase.



331
332
333
334
335
336
337
# File 'lib/code_generator/api_converter.rb', line 331

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

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



329
330
331
# File 'lib/code_generator/api_converter.rb', line 329

def description
  @description
end

#nameObject

Returns the value of attribute name.



326
327
328
# File 'lib/code_generator/api_converter.rb', line 326

def name
  @name
end

#summaryObject

Returns the value of attribute summary.



328
329
330
# File 'lib/code_generator/api_converter.rb', line 328

def summary
  @summary
end

#valueObject

Returns the value of attribute value.



327
328
329
# File 'lib/code_generator/api_converter.rb', line 327

def value
  @value
end