Class: ApiRubyTypes
Instance Attribute Summary collapse
-
#all_types ⇒ Object
Returns the value of attribute all_types.
-
#modules ⇒ Object
Returns the value of attribute modules.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(params) ⇒ ApiRubyTypes
constructor
A new instance of ApiRubyTypes.
Constructor Details
#initialize(params) ⇒ ApiRubyTypes
Returns a new instance of ApiRubyTypes.
263 264 265 266 267 268 269 270 |
# File 'lib/code_generator/api_converter.rb', line 263 def initialize(params) @all_types = {} 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
#all_types ⇒ Object
Returns the value of attribute all_types.
261 262 263 |
# File 'lib/code_generator/api_converter.rb', line 261 def all_types @all_types end |
#modules ⇒ Object
Returns the value of attribute modules.
260 261 262 |
# File 'lib/code_generator/api_converter.rb', line 260 def modules @modules end |
#version ⇒ Object
Returns the value of attribute version.
259 260 261 |
# File 'lib/code_generator/api_converter.rb', line 259 def version @version end |