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.
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
#description ⇒ Object
Returns the value of attribute description.
330 331 332 |
# File 'lib/code_generator/api_converter.rb', line 330 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
327 328 329 |
# File 'lib/code_generator/api_converter.rb', line 327 def name @name end |
#summary ⇒ Object
Returns the value of attribute summary.
329 330 331 |
# File 'lib/code_generator/api_converter.rb', line 329 def summary @summary end |
#value ⇒ Object
Returns the value of attribute value.
328 329 330 |
# File 'lib/code_generator/api_converter.rb', line 328 def value @value end |