Class: Protobuf::Nats::JNats::Message
- Inherits:
-
Object
- Object
- Protobuf::Nats::JNats::Message
- Defined in:
- lib/protobuf/nats/jnats.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#reply ⇒ Object
readonly
Returns the value of attribute reply.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
Instance Method Summary collapse
-
#initialize(nats_message) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(nats_message) ⇒ Message
Returns a new instance of Message.
16 17 18 19 20 |
# File 'lib/protobuf/nats/jnats.rb', line 16 def initialize() @data = .getData.to_s @reply = .getReplyTo.to_s @subject = .getSubject end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
14 15 16 |
# File 'lib/protobuf/nats/jnats.rb', line 14 def data @data end |
#reply ⇒ Object (readonly)
Returns the value of attribute reply.
14 15 16 |
# File 'lib/protobuf/nats/jnats.rb', line 14 def reply @reply end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
14 15 16 |
# File 'lib/protobuf/nats/jnats.rb', line 14 def subject @subject end |