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.



225
226
227
228
# File 'lib/elrpc.rb', line 225

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

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



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

def block
  @block
end

#uidObject (readonly)

Returns the value of attribute uid.



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

def uid
  @uid
end

Instance Method Details

#to_astObject



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

def to_ast
  [:methods, @uid]
end