Module: Ripple::Document::Key::InstanceMethods

Defined in:
lib/ripple/document/key.rb

Instance Method Summary collapse

Instance Method Details

#keyObject

Reads the key for this Document.



42
43
44
# File 'lib/ripple/document/key.rb', line 42

def key
  @key
end

#key=(value) ⇒ Object

Sets the key for this Document.



47
48
49
# File 'lib/ripple/document/key.rb', line 47

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

#key_attrObject



51
52
53
# File 'lib/ripple/document/key.rb', line 51

def key_attr
  :key
end