Class: Qpid::Proton::TrackerStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/qpid_proton/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:



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_sObject

:nodoc:



38
39
40
# File 'lib/qpid_proton/tracker_status.rb', line 38

def to_s # :nodoc:
  @name.to_s
end

#valueObject

:nodoc:



34
35
36
# File 'lib/qpid_proton/tracker_status.rb', line 34

def value # :nodoc:
  @value
end