Class: Netaxept::ErrorMessage
- Inherits:
-
Object
- Object
- Netaxept::ErrorMessage
- Defined in:
- lib/netaxept/error_message.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
-
#source ⇒ Object
Returns the value of attribute source.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(node) ⇒ ErrorMessage
constructor
A new instance of ErrorMessage.
Constructor Details
#initialize(node) ⇒ ErrorMessage
Returns a new instance of ErrorMessage.
4 5 6 7 8 9 10 11 |
# File 'lib/netaxept/error_message.rb', line 4 def initialize(node) if(node) @message = node["Message"] @code = node["Code"] @source = node["ResponseSource"] @text = node["ResponseText"] end end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
3 4 5 |
# File 'lib/netaxept/error_message.rb', line 3 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
3 4 5 |
# File 'lib/netaxept/error_message.rb', line 3 def @message end |
#source ⇒ Object
Returns the value of attribute source.
3 4 5 |
# File 'lib/netaxept/error_message.rb', line 3 def source @source end |
#text ⇒ Object
Returns the value of attribute text.
3 4 5 |
# File 'lib/netaxept/error_message.rb', line 3 def text @text end |