Class: Qpid::Proton::Messenger::TrackerStatus
- Inherits:
-
Object
- Object
- Qpid::Proton::Messenger::TrackerStatus
- Defined in:
- lib/messenger/tracker_status.rb
Overview
TrackerStatus contains symbols that represent the status value for a Tracker.
Class Method Summary collapse
-
.by_name(name) ⇒ Object
:nodoc:.
-
.by_value(value) ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#initialize(value, name) ⇒ TrackerStatus
constructor
:nodoc:.
-
#to_s ⇒ Object
:nodoc:.
-
#value ⇒ Object
:nodoc:.
Constructor Details
#initialize(value, name) ⇒ TrackerStatus
:nodoc:
27 28 29 30 |
# File 'lib/messenger/tracker_status.rb', line 27 def initialize value, name # :nodoc: @value = value @name = name end |
Class Method Details
.by_name(name) ⇒ Object
:nodoc:
40 41 42 |
# File 'lib/messenger/tracker_status.rb', line 40 def self.by_name(name) # :nodoc: @by_name[name.to_sym] unless name.nil? end |
.by_value(value) ⇒ Object
:nodoc:
44 45 46 |
# File 'lib/messenger/tracker_status.rb', line 44 def self.by_value(value) # :nodoc: @by_value[value] unless value.nil? end |
Instance Method Details
#to_s ⇒ Object
:nodoc:
36 37 38 |
# File 'lib/messenger/tracker_status.rb', line 36 def to_s # :nodoc: @name.to_s end |
#value ⇒ Object
:nodoc:
32 33 34 |
# File 'lib/messenger/tracker_status.rb', line 32 def value # :nodoc: @value end |