Class: TypeStruct
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#functions ⇒ Object
Returns the value of attribute functions.
-
#name ⇒ Object
Returns the value of attribute name.
-
#parents ⇒ Object
Returns the value of attribute parents.
-
#summary ⇒ Object
Returns the value of attribute summary.
Instance Method Summary collapse
-
#initialize(params) ⇒ TypeStruct
constructor
A new instance of TypeStruct.
Constructor Details
#initialize(params) ⇒ TypeStruct
Returns a new instance of TypeStruct.
348 349 350 351 352 353 354 |
# File 'lib/code_generator/api_converter.rb', line 348 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
#description ⇒ Object
Returns the value of attribute description.
346 347 348 |
# File 'lib/code_generator/api_converter.rb', line 346 def description @description end |
#fields ⇒ Object
Returns the value of attribute fields.
343 344 345 |
# File 'lib/code_generator/api_converter.rb', line 343 def fields @fields end |
#functions ⇒ Object
Returns the value of attribute functions.
344 345 346 |
# File 'lib/code_generator/api_converter.rb', line 344 def functions @functions end |
#name ⇒ Object
Returns the value of attribute name.
341 342 343 |
# File 'lib/code_generator/api_converter.rb', line 341 def name @name end |
#parents ⇒ Object
Returns the value of attribute parents.
342 343 344 |
# File 'lib/code_generator/api_converter.rb', line 342 def parents @parents end |
#summary ⇒ Object
Returns the value of attribute summary.
345 346 347 |
# File 'lib/code_generator/api_converter.rb', line 345 def summary @summary end |