Class: StructFunction

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ StructFunction

Returns a new instance of StructFunction.



380
381
382
383
384
385
386
# File 'lib/code_generator/api_converter.rb', line 380

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

#argumentsObject

Returns the value of attribute arguments.



375
376
377
# File 'lib/code_generator/api_converter.rb', line 375

def arguments
  @arguments
end

#descriptionObject

Returns the value of attribute description.



378
379
380
# File 'lib/code_generator/api_converter.rb', line 378

def description
  @description
end

#nameObject

Returns the value of attribute name.



374
375
376
# File 'lib/code_generator/api_converter.rb', line 374

def name
  @name
end

#resultObject

Returns the value of attribute result.



376
377
378
# File 'lib/code_generator/api_converter.rb', line 376

def result
  @result
end

#summaryObject

Returns the value of attribute summary.



377
378
379
# File 'lib/code_generator/api_converter.rb', line 377

def summary
  @summary
end