module Aquasync::DeltaPackMethods

Has a responsibility to implement DeltaPackBuilder requirement. @author kaiinui @see DeltaPackBuilder

Public Instance Methods

_name() click to toggle source

returns its class name. Hoge for “Hoge”. *DeltaPackBuilder Requirement @return [Symbol]

# File lib/models/concerns/aquasync_delta_pack_methods.rb, line 14
def _name
  self.class.name
end
to_h() click to toggle source

returns serialized hash whose _id is excluded. *DeltaPackBuilder Requirement @return [Hash]

# File lib/models/concerns/aquasync_delta_pack_methods.rb, line 21
def to_h
  serializable_hash.delete_if {|key| key == "_id" or key == "ust" or key == "user_id"} # https://github.com/AQAquamarine/aquasync-protocol/blob/master/q-user_id.md
end