Class: Lol::Model

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Lol::Model

Initializes a Lol::Model

Parameters:

  • options (Hash) (defaults to: {})


12
13
14
15
16
17
# File 'lib/lol/model.rb', line 12

def initialize options = {}
  @raw = options
  options.each do |attribute_name, value|
    send "#{attribute_name.to_s.underscore}=", value
  end
end

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



7
8
9
# File 'lib/lol/model.rb', line 7

def raw
  @raw
end