Class: TypeEnum
Instance Attribute Summary collapse
-
#cases ⇒ Object
Returns the value of attribute cases.
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#parents ⇒ Object
Returns the value of attribute parents.
-
#summary ⇒ Object
Returns the value of attribute summary.
Instance Method Summary collapse
-
#initialize(params) ⇒ TypeEnum
constructor
A new instance of TypeEnum.
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
#cases ⇒ Object
Returns the value of attribute cases.
312 313 314 |
# File 'lib/code_generator/api_converter.rb', line 312 def cases @cases end |
#description ⇒ Object
Returns the value of attribute description.
314 315 316 |
# File 'lib/code_generator/api_converter.rb', line 314 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
310 311 312 |
# File 'lib/code_generator/api_converter.rb', line 310 def name @name end |
#parents ⇒ Object
Returns the value of attribute parents.
311 312 313 |
# File 'lib/code_generator/api_converter.rb', line 311 def parents @parents end |
#summary ⇒ Object
Returns the value of attribute summary.
313 314 315 |
# File 'lib/code_generator/api_converter.rb', line 313 def summary @summary end |