Module: Ripple::Document::Key
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/ripple/document/key.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#key ⇒ Object
Reads the key for this Document.
-
#key=(value) ⇒ Object
Sets the key for this Document.
- #key_attr ⇒ Object
Instance Method Details
#key ⇒ Object
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_attr ⇒ Object
30 31 32 |
# File 'lib/ripple/document/key.rb', line 30 def key_attr :key end |