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.



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

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.



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

def description
  @description
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#summaryObject

Returns the value of attribute summary.



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

def summary
  @summary
end

#valueObject

Returns the value of attribute value.



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

def value
  @value
end