Class: Ambo::Context

Inherits:
Object
  • Object
show all
Includes:
ActiveSupport::Configurable, Ambo::Contexts::Periodic, Ambo::Contexts::Twitter
Defined in:
lib/ambo/context.rb

Overview

DSL context class; every loaded bot source file is BasicObject#instance_eval against new instances of this class.

Constant Summary

Constants included from Ambo::Contexts::Twitter

Ambo::Contexts::Twitter::CLIENT_CONFIG

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Ambo::Contexts::Periodic

#every, #next_message, #periodic?

Methods included from Ambo::Contexts::Twitter

#tweet_as, #twitter?

Constructor Details

#initialize(bot_name) ⇒ Context


17
18
19
# File 'lib/ambo/context.rb', line 17

def initialize(bot_name)
  @bot_name = bot_name
end

Instance Attribute Details

#bot_nameObject (readonly)

include Context::Reply


15
16
17
# File 'lib/ambo/context.rb', line 15

def bot_name
  @bot_name
end