Class: Trello::Schema::Serializer::Default

Inherits:
Object
  • Object
show all
Defined in:
lib/trello/schema/serializer/default.rb

Class Method Summary collapse

Class Method Details

.deserialize(value, default) ⇒ Object



10
11
12
# File 'lib/trello/schema/serializer/default.rb', line 10

def deserialize(value, default)
  value == nil ? default : value
end

.serialize(value) ⇒ Object



6
7
8
# File 'lib/trello/schema/serializer/default.rb', line 6

def serialize(value)
  value
end