Class: Elrpc::ErrorMessage
- Inherits:
-
Object
- Object
- Elrpc::ErrorMessage
- Defined in:
- lib/elrpc.rb
Instance Attribute Summary collapse
-
#error_msg ⇒ Object
readonly
Returns the value of attribute error_msg.
-
#uid ⇒ Object
readonly
Returns the value of attribute uid.
Instance Method Summary collapse
-
#initialize(uid, error_msg) ⇒ ErrorMessage
constructor
A new instance of ErrorMessage.
- #to_ast ⇒ Object
Constructor Details
#initialize(uid, error_msg) ⇒ ErrorMessage
Returns a new instance of ErrorMessage.
259 260 261 262 |
# File 'lib/elrpc.rb', line 259 def initialize(uid, error_msg) @uid = uid @error_msg = error_msg end |
Instance Attribute Details
#error_msg ⇒ Object (readonly)
Returns the value of attribute error_msg.
257 258 259 |
# File 'lib/elrpc.rb', line 257 def error_msg @error_msg end |
#uid ⇒ Object (readonly)
Returns the value of attribute uid.
257 258 259 |
# File 'lib/elrpc.rb', line 257 def uid @uid end |
Instance Method Details
#to_ast ⇒ Object
264 265 266 |
# File 'lib/elrpc.rb', line 264 def to_ast [:'return-error', @uid, @error_msg] end |