Class: Netaxept::ErrorMessage

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject

Returns the value of attribute code.



3
4
5
# File 'lib/netaxept/error_message.rb', line 3

def code
  @code
end

#messageObject

Returns the value of attribute message.



3
4
5
# File 'lib/netaxept/error_message.rb', line 3

def message
  @message
end

#sourceObject

Returns the value of attribute source.



3
4
5
# File 'lib/netaxept/error_message.rb', line 3

def source
  @source
end

#textObject

Returns the value of attribute text.



3
4
5
# File 'lib/netaxept/error_message.rb', line 3

def text
  @text
end