Class: Flipper::Notifications::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/flipper/notifications/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
11
# File 'lib/flipper/notifications/configuration.rb', line 7

def initialize
  @enabled   = false
  @notifiers = []
  @webhook_character_limit = nil
end

Instance Attribute Details

#enabledObject

Returns the value of attribute enabled.



13
14
15
# File 'lib/flipper/notifications/configuration.rb', line 13

def enabled
  @enabled
end

#notifiersObject

Returns the value of attribute notifiers.



13
14
15
# File 'lib/flipper/notifications/configuration.rb', line 13

def notifiers
  @notifiers
end

#webhook_character_limitObject

Returns the value of attribute webhook_character_limit.



13
14
15
# File 'lib/flipper/notifications/configuration.rb', line 13

def webhook_character_limit
  @webhook_character_limit
end

Instance Method Details

#enabled?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/flipper/notifications/configuration.rb', line 15

def enabled?
  @enabled
end