Class: CatchNotes::Tagging
- Inherits:
-
Object
- Object
- CatchNotes::Tagging
- Defined in:
- lib/catch_notes/tagging.rb
Instance Method Summary collapse
- #count ⇒ Object
-
#initialize(attrs, creator) ⇒ Tagging
constructor
A new instance of Tagging.
- #notes ⇒ Object
Constructor Details
#initialize(attrs, creator) ⇒ Tagging
Returns a new instance of Tagging.
5 6 7 8 |
# File 'lib/catch_notes/tagging.rb', line 5 def initialize( attrs, creator ) @attrs = attrs @creator = creator end |
Instance Method Details
#count ⇒ Object
10 11 12 |
# File 'lib/catch_notes/tagging.rb', line 10 def count @attrs['count'] end |
#notes ⇒ Object
14 15 16 |
# File 'lib/catch_notes/tagging.rb', line 14 def notes @creator.find_all_by_tag(@attr['name']) end |