Class: Ixtlan::Babel::NoTimestampSerializer
- Inherits:
-
Serializer
- Object
- Serializer
- Ixtlan::Babel::NoTimestampSerializer
- Defined in:
- lib/ixtlan/babel/no_timestamp_serializer.rb
Class Method Summary collapse
Methods inherited from Serializer
#add_custom_serializers, #id, #initialize, #method_missing, #respond_to?, #to_hash, #to_json, #to_xml, #to_yaml, #use
Constructor Details
This class inherits a constructor from Ixtlan::Babel::Serializer
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Ixtlan::Babel::Serializer
Class Method Details
.add_defaults(root = nil) ⇒ Object
26 27 28 29 30 |
# File 'lib/ixtlan/babel/no_timestamp_serializer.rb', line 26 def self.add_defaults(root = nil) self.root root add_context(:default) (:collection) end |
.add_no_timestamp_context(key, options = {}) ⇒ Object
32 33 34 35 36 37 |
# File 'lib/ixtlan/babel/no_timestamp_serializer.rb', line 32 def self.(key, = {}) except = ([:except] || []).dup except << :updated_at except << :created_at add_context(key, .merge({:except => except})) end |