Class: Lol::Model
- Inherits:
-
Object
- Object
- Lol::Model
- Defined in:
- lib/lol/model.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Lol::Model
constructor
Initializes a Lol::Model.
Constructor Details
#initialize(options = {}) ⇒ Lol::Model
Initializes a Lol::Model
8 9 10 11 12 13 |
# File 'lib/lol/model.rb', line 8 def initialize = {} @raw = .each do |attribute_name, value| send "#{attribute_name.to_s.underscore}=", value end end |