Class: Tiktalik::Object

Inherits:
Object
  • Object
show all
Defined in:
lib/tiktalik/object.rb

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ Object

Returns a new instance of Object.



11
12
13
14
15
16
17
# File 'lib/tiktalik/object.rb', line 11

def initialize(json)
  json.each do |key, value|
    instance_variable_set("@#{key}", value)
  end

  after_initialize
end