Class: Clearbit::Slack::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/clearbit/slack/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#slack_channelObject

Returns the value of attribute slack_channel.



4
5
6
# File 'lib/clearbit/slack/configuration.rb', line 4

def slack_channel
  @slack_channel
end

#slack_urlObject

Returns the value of attribute slack_url.



4
5
6
# File 'lib/clearbit/slack/configuration.rb', line 4

def slack_url
  @slack_url
end

Instance Method Details

#merge(hash) ⇒ Object



13
14
15
# File 'lib/clearbit/slack/configuration.rb', line 13

def merge(hash)
  to_hash.merge(hash)
end

#to_hashObject



6
7
8
9
10
11
# File 'lib/clearbit/slack/configuration.rb', line 6

def to_hash
  {
    slack_url: slack_url,
    slack_channel: slack_channel
  }
end