Class: WaseEndpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/wase_endpoint.rb,
lib/wase_endpoint/message.rb,
lib/wase_endpoint/twitterer.rb

Defined Under Namespace

Classes: Message, Twitterer

Instance Method Summary collapse

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(options={})
  @logger = Logger.new(options[:logfile])
  @twitterer = Twitterer.new(options[:username], options[:password])
  @sleep_period = options[: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.

Raises:

  • (Exception)


23
24
25
# File 'lib/wase_endpoint.rb', line 23

def secret_sauce(raw_json)
  raise Exception, 'You need to override secret_sauce'
end