Module: SlackRubyBot::Config
Instance Attribute Summary collapse
-
#aliases ⇒ Object
Returns the value of attribute aliases.
-
#allow_message_loops ⇒ Object
Returns the value of attribute allow_message_loops.
-
#send_gifs ⇒ Object
Returns the value of attribute send_gifs.
-
#team ⇒ Object
Returns the value of attribute team.
-
#team_id ⇒ Object
Returns the value of attribute team_id.
-
#token ⇒ Object
Returns the value of attribute token.
-
#url ⇒ Object
Returns the value of attribute url.
-
#user ⇒ Object
Returns the value of attribute user.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
Instance Attribute Details
#aliases ⇒ Object
Returns the value of attribute aliases.
7 8 9 |
# File 'lib/slack-ruby-bot/config.rb', line 7 def aliases @aliases end |
#allow_message_loops ⇒ Object
Returns the value of attribute allow_message_loops.
12 13 14 |
# File 'lib/slack-ruby-bot/config.rb', line 12 def @allow_message_loops end |
#send_gifs ⇒ Object
Returns the value of attribute send_gifs.
13 14 15 |
# File 'lib/slack-ruby-bot/config.rb', line 13 def send_gifs @send_gifs end |
#team ⇒ Object
Returns the value of attribute team.
10 11 12 |
# File 'lib/slack-ruby-bot/config.rb', line 10 def team @team end |
#team_id ⇒ Object
Returns the value of attribute team_id.
11 12 13 |
# File 'lib/slack-ruby-bot/config.rb', line 11 def team_id @team_id end |
#token ⇒ Object
Returns the value of attribute token.
5 6 7 |
# File 'lib/slack-ruby-bot/config.rb', line 5 def token @token end |
#url ⇒ Object
Returns the value of attribute url.
6 7 8 |
# File 'lib/slack-ruby-bot/config.rb', line 6 def url @url end |
#user ⇒ Object
Returns the value of attribute user.
8 9 10 |
# File 'lib/slack-ruby-bot/config.rb', line 8 def user @user end |
#user_id ⇒ Object
Returns the value of attribute user_id.
9 10 11 |
# File 'lib/slack-ruby-bot/config.rb', line 9 def user_id @user_id end |
Instance Method Details
#allow_message_loops? ⇒ Boolean
15 16 17 |
# File 'lib/slack-ruby-bot/config.rb', line 15 def end |
#send_gifs? ⇒ Boolean
19 20 21 22 |
# File 'lib/slack-ruby-bot/config.rb', line 19 def send_gifs? v = boolean_from_env('SLACK_RUBY_BOT_SEND_GIFS') v.nil? ? (send_gifs.nil? || send_gifs) : v end |