Class: Qpid::Proton::TrackerStatus
- Inherits:
-
Object
- Object
- Qpid::Proton::TrackerStatus
- Defined in:
- lib/qpid_proton/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:
29 30 31 32 |
# File 'lib/qpid_proton/tracker_status.rb', line 29 def initialize value, name # :nodoc: @value = value @name = name end |
Class Method Details
.by_name(name) ⇒ Object
:nodoc:
42 43 44 |
# File 'lib/qpid_proton/tracker_status.rb', line 42 def self.by_name(name) # :nodoc: @by_name[name.to_sym] unless name.nil? end |
.by_value(value) ⇒ Object
:nodoc:
46 47 48 |
# File 'lib/qpid_proton/tracker_status.rb', line 46 def self.by_value(value) # :nodoc: @by_value[value] unless value.nil? end |
Instance Method Details
#to_s ⇒ Object
:nodoc:
38 39 40 |
# File 'lib/qpid_proton/tracker_status.rb', line 38 def to_s # :nodoc: @name.to_s end |
#value ⇒ Object
:nodoc:
34 35 36 |
# File 'lib/qpid_proton/tracker_status.rb', line 34 def value # :nodoc: @value end |