Class: Elrpc::EPCErrorMessage

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uid, error_msg) ⇒ EPCErrorMessage

Returns a new instance of EPCErrorMessage.



276
277
278
279
# File 'lib/elrpc.rb', line 276

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

Instance Attribute Details

#error_msgObject (readonly)

Returns the value of attribute error_msg.



274
275
276
# File 'lib/elrpc.rb', line 274

def error_msg
  @error_msg
end

#uidObject (readonly)

Returns the value of attribute uid.



274
275
276
# File 'lib/elrpc.rb', line 274

def uid
  @uid
end

Instance Method Details

#to_astObject



281
282
283
# File 'lib/elrpc.rb', line 281

def to_ast
  [:'epc-error', @uid, @error_msg]
end