Module: CurlyMustache::Connection::InstanceMethods
- Defined in:
- lib/curly_mustache/connection.rb
Instance Method Summary collapse
-
#recv_attributes(attributes) ⇒ Object
Override this method if you want to massage the data that is received from the adapter.
-
#send_attributes(attributes) ⇒ Object
Override this method if you want to massage the data that is sent to the adapter.
Instance Method Details
#recv_attributes(attributes) ⇒ Object
Override this method if you want to massage the data that is received from the adapter.
attributes
is what is returned from the adapter’s get
method.
Return value will be assigned to self.attributes
.
52 53 54 |
# File 'lib/curly_mustache/connection.rb', line 52 def recv_attributes(attributes) attributes end |
#send_attributes(attributes) ⇒ Object
Override this method if you want to massage the data that is sent to the adapter.
attributes
is the same as self.attributes
.
Return value will be sent to the adapter’s put
method.
43 44 45 |
# File 'lib/curly_mustache/connection.rb', line 43 def send_attributes(attributes) attributes end |