Class: FunctionArgument
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(params) ⇒ FunctionArgument
constructor
A new instance of FunctionArgument.
Constructor Details
#initialize(params) ⇒ FunctionArgument
Returns a new instance of FunctionArgument.
392 393 394 395 396 397 398 |
# File 'lib/code_generator/api_converter.rb', line 392 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
#name ⇒ Object
Returns the value of attribute name.
389 390 391 |
# File 'lib/code_generator/api_converter.rb', line 389 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
390 391 392 |
# File 'lib/code_generator/api_converter.rb', line 390 def type @type end |