Class: Qpid::Proton::MessageFormat

Inherits:
Object
  • Object
show all
Defined in:
lib/qpid_proton/message_format.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, name) ⇒ MessageFormat

:nodoc:



26
27
28
29
# File 'lib/qpid_proton/message_format.rb', line 26

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

Class Method Details

.by_name(name) ⇒ Object

:nodoc:



43
44
45
# File 'lib/qpid_proton/message_format.rb', line 43

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

.by_value(value) ⇒ Object

:nodoc:



47
48
49
# File 'lib/qpid_proton/message_format.rb', line 47

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

.formatsObject

:nodoc:



39
40
41
# File 'lib/qpid_proton/message_format.rb', line 39

def self.formats # :nodoc:
  @formats
end

Instance Method Details

#to_sObject

:nodoc:



35
36
37
# File 'lib/qpid_proton/message_format.rb', line 35

def to_s # :nodoc:
  @name.to_s
end

#valueObject

:nodoc:



31
32
33
# File 'lib/qpid_proton/message_format.rb', line 31

def value # :nodoc:
  @value
end