Sha256: 3c7fe3d93f81dcab147275e6088744f64e33102c1dd79a5c386780701b48c174
Contents?: true
Size: 697 Bytes
Versions: 1
Compression:
Stored size: 697 Bytes
Contents
require 'cgi' require 'httparty' require 'virility/version' require 'virility/supporter' require 'virility/excitation' require 'virility/strategy' require 'virility/exceptions' Dir["#{File.dirname(__FILE__)}/virility/strategies/**/*.rb"].each {|f| require f} module Virility # # Public API # def self.counts(url) Virility::Excitation.new(url).counts end def self.total(url) Virility::Excitation.new(url).total end def self.poll(url) Virility::Excitation.new(url).poll end def self.url(url) virility = Virility::Excitation.new(url) virility.poll virility end # # Factory # def self.factory(strategy, url) Virility::Excitation.new(url).send(strategy) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
virility-0.1.0 | lib/virility.rb |