Class: Firecord::Record::Deserializer

Inherits:
Object
  • Object
show all
Defined in:
lib/firecord/record/deserializer.rb

Instance Method Summary collapse

Constructor Details

#initialize(value, type) ⇒ Deserializer



4
5
6
7
# File 'lib/firecord/record/deserializer.rb', line 4

def initialize(value, type)
  @value = value
  @type = type
end

Instance Method Details

#valueObject



9
10
11
# File 'lib/firecord/record/deserializer.rb', line 9

def value
  send(@type)
end