Class: BasicJRPC::Client::Payload

Inherits:
Object
  • Object
show all
Defined in:
lib/basicjrpc/client/payload.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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)
  @message_id = SecureRandom.uuid
  @method_name = method_name
  @args = args
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



5
6
7
# File 'lib/basicjrpc/client/payload.rb', line 5

def args
  @args
end

#message_idObject (readonly)

Returns the value of attribute message_id.



5
6
7
# File 'lib/basicjrpc/client/payload.rb', line 5

def message_id
  @message_id
end

#method_nameObject (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_requestedObject

Returns the value of attribute response_requested.



6
7
8
# File 'lib/basicjrpc/client/payload.rb', line 6

def response_requested
  @response_requested
end