Class: PubsubNotifier::SlackClient::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/pubsub_notifier/slack_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig



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_channelObject

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_emojiObject

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_usernameObject

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_urlObject

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