Class: Qpid::Proton::MessageFormat
- Inherits:
-
Object
- Object
- Qpid::Proton::MessageFormat
- Defined in:
- lib/qpid_proton/message_format.rb
Class Method Summary collapse
-
.by_name(name) ⇒ Object
:nodoc:.
-
.by_value(value) ⇒ Object
:nodoc:.
-
.formats ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#initialize(value, name) ⇒ MessageFormat
constructor
:nodoc:.
-
#to_s ⇒ Object
:nodoc:.
-
#value ⇒ Object
:nodoc:.
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 |
.formats ⇒ Object
:nodoc:
39 40 41 |
# File 'lib/qpid_proton/message_format.rb', line 39 def self.formats # :nodoc: @formats end |
Instance Method Details
#to_s ⇒ Object
:nodoc:
35 36 37 |
# File 'lib/qpid_proton/message_format.rb', line 35 def to_s # :nodoc: @name.to_s end |
#value ⇒ Object
:nodoc:
31 32 33 |
# File 'lib/qpid_proton/message_format.rb', line 31 def value # :nodoc: @value end |