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.
262 263 264 265 266 267 268 269 |
# File 'lib/code_generator/api_converter.rb', line 262 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.
260 261 262 |
# File 'lib/code_generator/api_converter.rb', line 260 def all_types @all_types end |
#modules ⇒ Object
Returns the value of attribute modules.
259 260 261 |
# File 'lib/code_generator/api_converter.rb', line 259 def modules @modules end |
#version ⇒ Object
Returns the value of attribute version.
258 259 260 |
# File 'lib/code_generator/api_converter.rb', line 258 def version @version end |