Class: Qpid::Proton::Messenger::TrackerStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/messenger/tracker_status.rb

Overview

TrackerStatus contains symbols that represent the status value for a Tracker.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, name) ⇒ TrackerStatus

:nodoc:



26
27
28
29
# File 'lib/messenger/tracker_status.rb', line 26

def initialize value, name # :nodoc:
  @value = value
  @name = name
end

Class Method Details

.by_name(name) ⇒ Object

:nodoc:



39
40
41
# File 'lib/messenger/tracker_status.rb', line 39

def self.by_name(name) # :nodoc:
  @by_name[name.to_sym] unless name.nil?
end

.by_value(value) ⇒ Object

:nodoc:



43
44
45
# File 'lib/messenger/tracker_status.rb', line 43

def self.by_value(value) # :nodoc:
  @by_value[value] unless value.nil?
end

Instance Method Details

#to_sObject

:nodoc:



35
36
37
# File 'lib/messenger/tracker_status.rb', line 35

def to_s # :nodoc:
  @name.to_s
end

#valueObject

:nodoc:



31
32
33
# File 'lib/messenger/tracker_status.rb', line 31

def value # :nodoc:
  @value
end