Class: Virility::Delicious
- Defined in:
- lib/virility/strategies/delicious.rb
Instance Attribute Summary
Attributes inherited from Strategy
Instance Method Summary collapse
Methods inherited from Strategy
#call_strategy, #collect_results, #get_result, #initialize, #method_missing, #poll, #result_exists?, #valid_response_test
Methods included from Supporter
#camelize, #encode, #escaped_url, #get_class_string, #symbolize_for_key, #underscore, #url
Constructor Details
This class inherits a constructor from Virility::Strategy
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Virility::Strategy
Instance Method Details
#census ⇒ Object
4 5 6 |
# File 'lib/virility/strategies/delicious.rb', line 4 def census self.class.get("http://feeds.delicious.com/v2/json/urlinfo/data?url=#{@url}") end |
#count ⇒ Object
8 9 10 |
# File 'lib/virility/strategies/delicious.rb', line 8 def count results["total_posts"] || 0 end |