Class: Transcriber::Resource::Serialization::Enumerable

Inherits:
Object
  • Object
show all
Defined in:
lib/transcriber/resource/serialization/enumerable.rb

Class Method Summary collapse

Class Method Details

.desserialize(value) ⇒ Object



10
11
12
13
# File 'lib/transcriber/resource/serialization/enumerable.rb', line 10

def self.desserialize(value)
  fail "value not desserializable: #{value}" unless value.kind_of?(::Enumerable)
  value
end

.serialize(value) ⇒ Object



5
6
7
8
# File 'lib/transcriber/resource/serialization/enumerable.rb', line 5

def self.serialize(value)
  fail "value not serializable: #{value}" unless value.kind_of?(::Enumerable)
  value
end