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.



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

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.



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

def arguments
  @arguments
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#resultObject

Returns the value of attribute result.



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

def result
  @result
end

#summaryObject

Returns the value of attribute summary.



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

def summary
  @summary
end