Class: Couchbase::Transcoder::Plain

Inherits:
Base
  • Object
show all
Defined in:
lib/couchbase/transcoder.rb

Instance Method Summary collapse

Instance Method Details

#decode(d) ⇒ Object



64
65
66
# File 'lib/couchbase/transcoder.rb', line 64

def decode(d)
  super
end

#encode(o) ⇒ Object



68
69
70
71
72
# File 'lib/couchbase/transcoder.rb', line 68

def encode(o)
  super(o.to_str)
rescue NoMethodError
  raise Couchbase::Error::ValueFormat
end