Class: Noodall::Tagging::Tag

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, count) ⇒ Tag

Returns a new instance of Tag.



65
66
67
68
# File 'lib/noodall/tagging.rb', line 65

def initialize(name, count)
  @name = name
  @count = count.to_i
end

Instance Attribute Details

#countObject (readonly)

Returns the value of attribute count.



63
64
65
# File 'lib/noodall/tagging.rb', line 63

def count
  @count
end

#nameObject (readonly)

Returns the value of attribute name.



63
64
65
# File 'lib/noodall/tagging.rb', line 63

def name
  @name
end