Class: MyVR::Model

Inherits:
Object
  • Object
show all
Defined in:
lib/myvr/model.rb

Direct Known Subclasses

Amenity, Fee, Photo, Property, Rate, Room

Instance Method Summary collapse

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