Class: PubsubNotifier::SlackClient::Config
- Inherits:
-
Object
- Object
- PubsubNotifier::SlackClient::Config
- Defined in:
- lib/pubsub_notifier/slack_client.rb
Instance Attribute Summary collapse
-
#default_channel ⇒ Object
Returns the value of attribute default_channel.
-
#default_icon_emoji ⇒ Object
Returns the value of attribute default_icon_emoji.
-
#default_username ⇒ Object
Returns the value of attribute default_username.
-
#webhook_url ⇒ Object
Returns the value of attribute webhook_url.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
76 77 78 79 80 81 |
# File 'lib/pubsub_notifier/slack_client.rb', line 76 def initialize @default_channel = ENV["SLACK_DEFAULT_CHANNEL"] @default_username = ENV["SLACK_DEFAULT_USERNAME"] @default_icon_emoji = ENV["SLACK_DEFAULT_ICON_EMOJI"] @webhook_url = ENV["SLACK_WEBHOOK_URL"] end |
Instance Attribute Details
#default_channel ⇒ Object
Returns the value of attribute default_channel.
74 75 76 |
# File 'lib/pubsub_notifier/slack_client.rb', line 74 def default_channel @default_channel end |
#default_icon_emoji ⇒ Object
Returns the value of attribute default_icon_emoji.
74 75 76 |
# File 'lib/pubsub_notifier/slack_client.rb', line 74 def default_icon_emoji @default_icon_emoji end |
#default_username ⇒ Object
Returns the value of attribute default_username.
74 75 76 |
# File 'lib/pubsub_notifier/slack_client.rb', line 74 def default_username @default_username end |
#webhook_url ⇒ Object
Returns the value of attribute webhook_url.
74 75 76 |
# File 'lib/pubsub_notifier/slack_client.rb', line 74 def webhook_url @webhook_url end |