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.



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

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

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



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

def block
  @block
end

#uidObject (readonly)

Returns the value of attribute uid.



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

def uid
  @uid
end

Instance Method Details

#to_astObject



242
243
244
# File 'lib/elrpc.rb', line 242

def to_ast
  [:methods, @uid]
end