Class: RedoxEngine::Visit

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/redox-engine/visit.rb

Overview

Serialize the Visit response object from RedoxEngine

Instance Method Summary collapse

Methods included from Util

#map_hash_to_attributes

Constructor Details

#initialize(visit_hash) ⇒ Visit

Returns a new instance of Visit.



5
6
7
# File 'lib/redox-engine/visit.rb', line 5

def initialize(visit_hash)
  map_hash_to_attributes(visit_hash.rubyize_keys)
end