Class: CatchNotes::Tagging

Inherits:
Object
  • Object
show all
Defined in:
lib/catch_notes/tagging.rb

Instance Method Summary collapse

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

#countObject



10
11
12
# File 'lib/catch_notes/tagging.rb', line 10

def count
  @attrs['count']
end

#notesObject



14
15
16
# File 'lib/catch_notes/tagging.rb', line 14

def notes
  @creator.find_all_by_tag(@attr['name'])
end