Class: DispatchRider::Publisher::Configuration::Destination
- Inherits:
-
Object
- Object
- DispatchRider::Publisher::Configuration::Destination
- Defined in:
- lib/dispatch-rider/publisher/configuration/destination.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name, attributes = {}) ⇒ Destination
constructor
A new instance of Destination.
Constructor Details
#initialize(name, attributes = {}) ⇒ Destination
Returns a new instance of Destination.
4 5 6 7 8 9 10 11 |
# File 'lib/dispatch-rider/publisher/configuration/destination.rb', line 4 def initialize(name, attributes={}) @name = name attributes = attributes.with_indifferent_access @service = attributes[:service] @channel = attributes[:channel] @options = attributes[:options] end |
Instance Attribute Details
#channel ⇒ Object (readonly)
Returns the value of attribute channel.
13 14 15 |
# File 'lib/dispatch-rider/publisher/configuration/destination.rb', line 13 def channel @channel end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
13 14 15 |
# File 'lib/dispatch-rider/publisher/configuration/destination.rb', line 13 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
13 14 15 |
# File 'lib/dispatch-rider/publisher/configuration/destination.rb', line 13 def @options end |
#service ⇒ Object (readonly)
Returns the value of attribute service.
13 14 15 |
# File 'lib/dispatch-rider/publisher/configuration/destination.rb', line 13 def service @service end |
Instance Method Details
#==(other) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/dispatch-rider/publisher/configuration/destination.rb', line 15 def ==(other) self.name == other.name && self.service == other.service && self.channel == other.channel && self. == other. end |