Class: Ruboty::HibariBento::Actions::Pull

Inherits:
Actions::Base
  • Object
show all
Defined in:
lib/ruboty/hibari_bento/actions/pull.rb

Constant Summary collapse

FACEBOOK_URL =
'https://www.facebook.com'.freeze
FACEBOOK_PAGE_ID =
'1585734291650119'.freeze
REDIS_NAMESPACE =
'hibari_bento'.freeze
REDIS_KEY =
'id'.freeze

Instance Method Summary collapse

Instance Method Details

#callObject



10
11
12
13
14
15
# File 'lib/ruboty/hibari_bento/actions/pull.rb', line 10

def call
  message.reply(build_message)
rescue => e
  backtrace = e.backtrace.join("\n")
  Ruboty.logger.error("Error: #{e.class} - #{e.message}\n#{backtrace}")
end