module Elastictastic::EmbeddedDocument

Public Instance Methods

==(other) click to toggle source
# File lib/elastictastic/embedded_document.rb, line 26
def ==(other)
  other.nil? ? false : @_attributes == other.read_attributes && @_embeds == other.read_embeds
end
attributes() click to toggle source
# File lib/elastictastic/embedded_document.rb, line 22
def attributes
  {}
end
eql?(other) click to toggle source
# File lib/elastictastic/embedded_document.rb, line 30
def eql?(other)
  self.class == other.class && self == other
end
initialize_copy(original) click to toggle source
# File lib/elastictastic/embedded_document.rb, line 18
def initialize_copy(original)
  self.write_attributes(original.read_attributes.dup)
end