module Pushable

Constants

VERSION

Attributes

client_id[RW]

Private Instance Methods

pushable_class_name() click to toggle source
# File lib/pushable.rb, line 18
def pushable_class_name
  self.class.name.underscore
end
serialized_model() click to toggle source
# File lib/pushable.rb, line 22
def serialized_model
  "#{self.class.name}Serializer".constantize.new(self).to_json
rescue NameError
  to_json
end