Class: TheCount::Countable
- Inherits:
-
Object
- Object
- TheCount::Countable
- Defined in:
- lib/thecount/countable.rb
Direct Known Subclasses
Digg, Disqus, Facebook, Facebook::Comments, Facebook::Sends, Google::Buzz, Google::Plus, LinkedIn, Twitter
Instance Attribute Summary collapse
-
#service_name ⇒ Object
readonly
Returns the value of attribute service_name.
-
#unit ⇒ Object
readonly
Returns the value of attribute unit.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#service_name ⇒ Object (readonly)
Returns the value of attribute service_name.
3 4 5 |
# File 'lib/thecount/countable.rb', line 3 def service_name @service_name end |
#unit ⇒ Object (readonly)
Returns the value of attribute unit.
3 4 5 |
# File 'lib/thecount/countable.rb', line 3 def unit @unit end |
#value ⇒ Object (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 |