Class: DispatchRider::Publisher::Configuration::NotificationService

Inherits:
Object
  • Object
show all
Defined in:
lib/dispatch-rider/publisher/configuration/notification_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options) ⇒ NotificationService

Returns a new instance of NotificationService.



5
6
7
8
# File 'lib/dispatch-rider/publisher/configuration/notification_service.rb', line 5

def initialize(name, options)
  @name = name
  @options = options
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



10
11
12
# File 'lib/dispatch-rider/publisher/configuration/notification_service.rb', line 10

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



10
11
12
# File 'lib/dispatch-rider/publisher/configuration/notification_service.rb', line 10

def options
  @options
end

Instance Method Details

#==(other) ⇒ Object



12
13
14
15
# File 'lib/dispatch-rider/publisher/configuration/notification_service.rb', line 12

def ==(other)
  name == other.name &&
    options == other.options
end