Class: Oat::Adapter

Inherits:
Object
  • Object
show all
Defined in:
lib/oat/adapter.rb

Instance Method Summary collapse

Constructor Details

#initialize(serializer) ⇒ Adapter


5
6
7
8
# File 'lib/oat/adapter.rb', line 5

def initialize(serializer)
  @serializer = serializer
  @data = Hash.new{|h,k| h[k] = {}}
end

Instance Method Details

#to_hashObject


10
11
12
# File 'lib/oat/adapter.rb', line 10

def to_hash
  data
end