Class: StructField
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#summary ⇒ Object
Returns the value of attribute summary.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(params) ⇒ StructField
constructor
A new instance of StructField.
Constructor Details
#initialize(params) ⇒ StructField
Returns a new instance of StructField.
363 364 365 366 367 368 369 |
# File 'lib/code_generator/api_converter.rb', line 363 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.
361 362 363 |
# File 'lib/code_generator/api_converter.rb', line 361 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
358 359 360 |
# File 'lib/code_generator/api_converter.rb', line 358 def name @name end |
#summary ⇒ Object
Returns the value of attribute summary.
360 361 362 |
# File 'lib/code_generator/api_converter.rb', line 360 def summary @summary end |
#type ⇒ Object
Returns the value of attribute type.
359 360 361 |
# File 'lib/code_generator/api_converter.rb', line 359 def type @type end |