Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/recliner/core_extensions.rb
Overview
Defines default to_couch
and from_couch
methods.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_couch(val) ⇒ Object
6 7 8 |
# File 'lib/recliner/core_extensions.rb', line 6 def self.from_couch(val) Recliner::Conversions.convert(val, self, :from => :couch) end |
Instance Method Details
#to_couch ⇒ Object
10 11 12 |
# File 'lib/recliner/core_extensions.rb', line 10 def to_couch Recliner::Conversions.convert(self, :couch) end |