Module: Ripple::Document::Key

Extended by:
ActiveSupport::Concern
Defined in:
lib/ripple/document/key.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#keyObject

Reads the key for this Document.



21
22
23
# File 'lib/ripple/document/key.rb', line 21

def key
  @key
end

#key=(value) ⇒ Object

Sets the key for this Document.



26
27
28
# File 'lib/ripple/document/key.rb', line 26

def key=(value)
  @key = value.to_s
end

#key_attrObject



30
31
32
# File 'lib/ripple/document/key.rb', line 30

def key_attr
  :key
end