Class: Elrpc::CallMessage
- Inherits:
-
Object
- Object
- Elrpc::CallMessage
- Defined in:
- lib/elrpc.rb
Overview
送信用データクラスキューに入れるために使う
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#uid ⇒ Object
readonly
Returns the value of attribute uid.
Instance Method Summary collapse
-
#initialize(uid, method, args, block) ⇒ CallMessage
constructor
A new instance of CallMessage.
- #to_ast ⇒ Object
Constructor Details
#initialize(uid, method, args, block) ⇒ CallMessage
Returns a new instance of CallMessage.
218 219 220 221 222 223 |
# File 'lib/elrpc.rb', line 218 def initialize(uid, method, args, block) @uid = uid @method = method @args = args @block = block end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
216 217 218 |
# File 'lib/elrpc.rb', line 216 def args @args end |
#block ⇒ Object (readonly)
Returns the value of attribute block.
216 217 218 |
# File 'lib/elrpc.rb', line 216 def block @block end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
216 217 218 |
# File 'lib/elrpc.rb', line 216 def method @method end |
#uid ⇒ Object (readonly)
Returns the value of attribute uid.
216 217 218 |
# File 'lib/elrpc.rb', line 216 def uid @uid end |
Instance Method Details
#to_ast ⇒ Object
225 226 227 |
# File 'lib/elrpc.rb', line 225 def to_ast [:call, @uid, @method, @args] end |