Class: Elrpc::MethodsMessage

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uid, block) ⇒ MethodsMessage

Returns a new instance of MethodsMessage.



233
234
235
236
# File 'lib/elrpc.rb', line 233

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

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



231
232
233
# File 'lib/elrpc.rb', line 231

def block
  @block
end

#uidObject (readonly)

Returns the value of attribute uid.



231
232
233
# File 'lib/elrpc.rb', line 231

def uid
  @uid
end

Instance Method Details

#to_astObject



238
239
240
# File 'lib/elrpc.rb', line 238

def to_ast
  [:methods, @uid]
end