Class: Elrpc::ErrorMessage

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uid, error_msg) ⇒ ErrorMessage

Returns a new instance of ErrorMessage.



251
252
253
254
# File 'lib/elrpc.rb', line 251

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.



249
250
251
# File 'lib/elrpc.rb', line 249

def error_msg
  @error_msg
end

#uidObject (readonly)

Returns the value of attribute uid.



249
250
251
# File 'lib/elrpc.rb', line 249

def uid
  @uid
end

Instance Method Details

#to_astObject



256
257
258
# File 'lib/elrpc.rb', line 256

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