Class: BasicJRPC::Client::Payload
- Inherits:
-
Object
- Object
- BasicJRPC::Client::Payload
- Defined in:
- lib/basicjrpc/client/payload.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#message_id ⇒ Object
readonly
Returns the value of attribute message_id.
-
#method_name ⇒ Object
readonly
Returns the value of attribute method_name.
-
#response_requested ⇒ Object
Returns the value of attribute response_requested.
Instance Method Summary collapse
-
#initialize(method_name, args) ⇒ Payload
constructor
A new instance of Payload.
Constructor Details
#initialize(method_name, args) ⇒ Payload
Returns a new instance of Payload.
8 9 10 11 12 |
# File 'lib/basicjrpc/client/payload.rb', line 8 def initialize(method_name, args) = SecureRandom.uuid @method_name = method_name @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
5 6 7 |
# File 'lib/basicjrpc/client/payload.rb', line 5 def args @args end |
#message_id ⇒ Object (readonly)
Returns the value of attribute message_id.
5 6 7 |
# File 'lib/basicjrpc/client/payload.rb', line 5 def end |
#method_name ⇒ Object (readonly)
Returns the value of attribute method_name.
5 6 7 |
# File 'lib/basicjrpc/client/payload.rb', line 5 def method_name @method_name end |
#response_requested ⇒ Object
Returns the value of attribute response_requested.
6 7 8 |
# File 'lib/basicjrpc/client/payload.rb', line 6 def response_requested @response_requested end |