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.



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

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

Instance Attribute Details

#countObject (readonly)

Returns the value of attribute count.



59
60
61
# File 'lib/noodall/tagging.rb', line 59

def count
  @count
end

#nameObject (readonly)

Returns the value of attribute name.



59
60
61
# File 'lib/noodall/tagging.rb', line 59

def name
  @name
end