Class: EnumCase
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#summary ⇒ Object
Returns the value of attribute summary.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(params) ⇒ EnumCase
constructor
A new instance of EnumCase.
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
#description ⇒ Object
Returns the value of attribute description.
329 330 331 |
# File 'lib/code_generator/api_converter.rb', line 329 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
326 327 328 |
# File 'lib/code_generator/api_converter.rb', line 326 def name @name end |
#summary ⇒ Object
Returns the value of attribute summary.
328 329 330 |
# File 'lib/code_generator/api_converter.rb', line 328 def summary @summary end |
#value ⇒ Object
Returns the value of attribute value.
327 328 329 |
# File 'lib/code_generator/api_converter.rb', line 327 def value @value end |