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.
349 350 351 352 353 354 355 |
# File 'lib/code_generator/api_converter.rb', line 349 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.
347 348 349 |
# File 'lib/code_generator/api_converter.rb', line 347 def description @description end |
#fields ⇒ Object
Returns the value of attribute fields.
344 345 346 |
# File 'lib/code_generator/api_converter.rb', line 344 def fields @fields end |
#functions ⇒ Object
Returns the value of attribute functions.
345 346 347 |
# File 'lib/code_generator/api_converter.rb', line 345 def functions @functions end |
#name ⇒ Object
Returns the value of attribute name.
342 343 344 |
# File 'lib/code_generator/api_converter.rb', line 342 def name @name end |
#parents ⇒ Object
Returns the value of attribute parents.
343 344 345 |
# File 'lib/code_generator/api_converter.rb', line 343 def parents @parents end |
#summary ⇒ Object
Returns the value of attribute summary.
346 347 348 |
# File 'lib/code_generator/api_converter.rb', line 346 def summary @summary end |