Class: WaseEndpoint
- Inherits:
-
Object
- Object
- WaseEndpoint
- Defined in:
- lib/wase_endpoint.rb,
lib/wase_endpoint/message.rb,
lib/wase_endpoint/twitterer.rb
Defined Under Namespace
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ WaseEndpoint
constructor
A new instance of WaseEndpoint.
-
#secret_sauce(raw_json) ⇒ Object
Override this.
Constructor Details
#initialize(options = {}) ⇒ WaseEndpoint
Returns a new instance of WaseEndpoint.
12 13 14 15 16 17 18 |
# File 'lib/wase_endpoint.rb', line 12 def initialize(={}) @logger = Logger.new([:logfile]) @twitterer = Twitterer.new([:username], [:password]) @sleep_period = [:sleep_period] || 60 start end |
Instance Method Details
#secret_sauce(raw_json) ⇒ Object
Override this. Argument is a json encoded string. Should return a json encoded string.
23 24 25 |
# File 'lib/wase_endpoint.rb', line 23 def secret_sauce(raw_json) raise Exception, 'You need to override secret_sauce' end |