Class: TheCount::Countable

Inherits:
Object
  • Object
show all
Defined in:
lib/thecount/countable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#service_nameObject (readonly)

Returns the value of attribute service_name.



3
4
5
# File 'lib/thecount/countable.rb', line 3

def service_name
  @service_name
end

#unitObject (readonly)

Returns the value of attribute unit.



3
4
5
# File 'lib/thecount/countable.rb', line 3

def unit
  @unit
end

#valueObject (readonly)

Returns the value of attribute value.



3
4
5
# File 'lib/thecount/countable.rb', line 3

def value
  @value
end

Instance Method Details

#count(url) ⇒ Object



5
6
7
# File 'lib/thecount/countable.rb', line 5

def count(url)
  raise "This countable object must have a count strategy implemented"
end