Class: Ripple::Document::Link
- Defined in:
- lib/ripple/document/link.rb
Overview
A Link that is tied to a particular document and tag. The key is fetched from the document lazily when needed.
Instance Method Summary collapse
- #hash ⇒ Object
-
#initialize(document, tag) ⇒ Link
constructor
A new instance of Link.
- #key ⇒ Object
Constructor Details
#initialize(document, tag) ⇒ Link
Returns a new instance of Link.
11 12 13 14 |
# File 'lib/ripple/document/link.rb', line 11 def initialize(document, tag) @document = document super(document.class.bucket_name, nil, tag) end |