Class: TypeAlias
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) ⇒ TypeAlias
constructor
A new instance of TypeAlias.
Constructor Details
#initialize(params) ⇒ TypeAlias
Returns a new instance of TypeAlias.
300 301 302 303 304 305 306 |
# File 'lib/code_generator/api_converter.rb', line 300 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.
298 299 300 |
# File 'lib/code_generator/api_converter.rb', line 298 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
295 296 297 |
# File 'lib/code_generator/api_converter.rb', line 295 def name @name end |
#summary ⇒ Object
Returns the value of attribute summary.
297 298 299 |
# File 'lib/code_generator/api_converter.rb', line 297 def summary @summary end |
#type ⇒ Object
Returns the value of attribute type.
296 297 298 |
# File 'lib/code_generator/api_converter.rb', line 296 def type @type end |