Class: StructFunction
Instance Attribute Summary collapse
-
#arguments ⇒ Object
Returns the value of attribute arguments.
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#result ⇒ Object
Returns the value of attribute result.
-
#summary ⇒ Object
Returns the value of attribute summary.
Instance Method Summary collapse
-
#initialize(params) ⇒ StructFunction
constructor
A new instance of StructFunction.
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
#arguments ⇒ Object
Returns the value of attribute arguments.
374 375 376 |
# File 'lib/code_generator/api_converter.rb', line 374 def arguments @arguments end |
#description ⇒ Object
Returns the value of attribute description.
377 378 379 |
# File 'lib/code_generator/api_converter.rb', line 377 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
373 374 375 |
# File 'lib/code_generator/api_converter.rb', line 373 def name @name end |
#result ⇒ Object
Returns the value of attribute result.
375 376 377 |
# File 'lib/code_generator/api_converter.rb', line 375 def result @result end |
#summary ⇒ Object
Returns the value of attribute summary.
376 377 378 |
# File 'lib/code_generator/api_converter.rb', line 376 def summary @summary end |