Class: BasicJRPC::Client::Payload
- Inherits:
-
Object
- Object
- BasicJRPC::Client::Payload
- Defined in:
- lib/basicjrpc.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.
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.
12 13 14 15 16 |
# File 'lib/basicjrpc.rb', line 12 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.
10 11 12 |
# File 'lib/basicjrpc.rb', line 10 def args @args end |
#message_id ⇒ Object (readonly)
Returns the value of attribute message_id.
10 11 12 |
# File 'lib/basicjrpc.rb', line 10 def end |
#method_name ⇒ Object (readonly)
Returns the value of attribute method_name.
10 11 12 |
# File 'lib/basicjrpc.rb', line 10 def method_name @method_name end |