Module: Emque::Producing::Message::ClassMethods
- Defined in:
- lib/emque/producing/message/message.rb
Instance Method Summary collapse
- #message_type(name) ⇒ Object
- #private_attribute(name, coercion = nil, opts = {}) ⇒ Object
- #private_attrs ⇒ Object
- #read_message_type ⇒ Object
- #read_topic ⇒ Object
- #topic(name) ⇒ Object
Instance Method Details
#message_type(name) ⇒ Object
19 20 21 |
# File 'lib/emque/producing/message/message.rb', line 19 def (name) @message_type = name end |
#private_attribute(name, coercion = nil, opts = {}) ⇒ Object
27 28 29 30 31 |
# File 'lib/emque/producing/message/message.rb', line 27 def private_attribute(name, coercion=nil, opts={}) @private_attrs ||= [] @private_attrs << name attribute(name, coercion, opts) end |
#private_attrs ⇒ Object
33 34 35 |
# File 'lib/emque/producing/message/message.rb', line 33 def private_attrs Array(@private_attrs) end |
#read_message_type ⇒ Object
23 24 25 |
# File 'lib/emque/producing/message/message.rb', line 23 def @message_type end |
#read_topic ⇒ Object
15 16 17 |
# File 'lib/emque/producing/message/message.rb', line 15 def read_topic @topic end |
#topic(name) ⇒ Object
11 12 13 |
# File 'lib/emque/producing/message/message.rb', line 11 def topic(name) @topic = name end |