Class: BasicJRPC::Client::Payload

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



10
11
12
# File 'lib/basicjrpc.rb', line 10

def args
  @args
end

#message_idObject (readonly)

Returns the value of attribute message_id.



10
11
12
# File 'lib/basicjrpc.rb', line 10

def message_id
  @message_id
end

#method_nameObject (readonly)

Returns the value of attribute method_name.



10
11
12
# File 'lib/basicjrpc.rb', line 10

def method_name
  @method_name
end