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.



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

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end

Instance Method Details

#==(other) ⇒ Object



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

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