Class: Module
Instance Attribute Summary collapse
-
#alias ⇒ Object
Returns the value of attribute alias.
-
#description ⇒ Object
Returns the value of attribute description.
-
#enums ⇒ Object
Returns the value of attribute enums.
-
#functions ⇒ Object
Returns the value of attribute functions.
-
#name ⇒ Object
Returns the value of attribute name.
-
#summary ⇒ Object
Returns the value of attribute summary.
-
#types ⇒ Object
Returns the value of attribute types.
-
#types_hash ⇒ Object
Returns the value of attribute types_hash.
Instance Method Summary collapse
-
#initialize(params) ⇒ Module
constructor
A new instance of Module.
Constructor Details
#initialize(params) ⇒ Module
Returns a new instance of Module.
284 285 286 287 288 289 290 291 |
# File 'lib/code_generator/api_converter.rb', line 284 def initialize(params) @types_hash = {} 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
#alias ⇒ Object
Returns the value of attribute alias.
276 277 278 |
# File 'lib/code_generator/api_converter.rb', line 276 def alias @alias end |
#description ⇒ Object
Returns the value of attribute description.
275 276 277 |
# File 'lib/code_generator/api_converter.rb', line 275 def description @description end |
#enums ⇒ Object
Returns the value of attribute enums.
277 278 279 |
# File 'lib/code_generator/api_converter.rb', line 277 def enums @enums end |
#functions ⇒ Object
Returns the value of attribute functions.
280 281 282 |
# File 'lib/code_generator/api_converter.rb', line 280 def functions @functions end |
#name ⇒ Object
Returns the value of attribute name.
273 274 275 |
# File 'lib/code_generator/api_converter.rb', line 273 def name @name end |
#summary ⇒ Object
Returns the value of attribute summary.
274 275 276 |
# File 'lib/code_generator/api_converter.rb', line 274 def summary @summary end |
#types ⇒ Object
Returns the value of attribute types.
278 279 280 |
# File 'lib/code_generator/api_converter.rb', line 278 def types @types end |
#types_hash ⇒ Object
Returns the value of attribute types_hash.
279 280 281 |
# File 'lib/code_generator/api_converter.rb', line 279 def types_hash @types_hash end |