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.



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

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end

Instance Method Details

#==(other) ⇒ Object



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

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