Class: MyVR::Model
- Inherits:
-
Object
- Object
- MyVR::Model
- Defined in:
- lib/myvr/model.rb
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Model
constructor
A new instance of Model.
Constructor Details
#initialize(attrs = {}) ⇒ Model
Returns a new instance of Model.
3 4 5 6 7 |
# File 'lib/myvr/model.rb', line 3 def initialize(attrs = {}) attrs.each do |key, value| instance_variable_set("@#{ key }", value) end end |