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:



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_sObject

:nodoc:



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

def to_s # :nodoc:
  @name.to_s
end

#valueObject

:nodoc:



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

def value # :nodoc:
  @value
end