Class: FunctionArgument

Inherits:
Object show all
Defined in:
lib/code_generator/api_converter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



389
390
391
# File 'lib/code_generator/api_converter.rb', line 389

def name
  @name
end

#typeObject

Returns the value of attribute type.



390
391
392
# File 'lib/code_generator/api_converter.rb', line 390

def type
  @type
end