Class: Elrpc::CallMessage

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

Overview

送信用データクラス キューに入れるために使う

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uid, method, args, block) ⇒ CallMessage

Returns a new instance of CallMessage.



222
223
224
225
226
227
# File 'lib/elrpc.rb', line 222

def initialize(uid, method, args, block)
  @uid = uid
  @method = method
  @args = args
  @block = block
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



220
221
222
# File 'lib/elrpc.rb', line 220

def args
  @args
end

#blockObject (readonly)

Returns the value of attribute block.



220
221
222
# File 'lib/elrpc.rb', line 220

def block
  @block
end

#methodObject (readonly)

Returns the value of attribute method.



220
221
222
# File 'lib/elrpc.rb', line 220

def method
  @method
end

#uidObject (readonly)

Returns the value of attribute uid.



220
221
222
# File 'lib/elrpc.rb', line 220

def uid
  @uid
end

Instance Method Details

#to_astObject



229
230
231
# File 'lib/elrpc.rb', line 229

def to_ast
  [:call, @uid, @method, @args]
end