Class: Fex::Response

Inherits:
SimpleDelegator
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/fex/response.rb

Direct Known Subclasses

ShipResponse

Instance Method Summary collapse

Constructor Details

#initializeResponse

Returns a new instance of Response.



10
11
12
13
# File 'lib/fex/response.rb', line 10

def initialize(*)
  super
  doc.remove_namespaces!
end

Instance Method Details

#codeObject



19
20
21
# File 'lib/fex/response.rb', line 19

def code
  xpath("//Notifications/Code").inner_text
end

#messageObject



23
24
25
# File 'lib/fex/response.rb', line 23

def message
  xpath("//Notifications/Message").inner_text
end

#severityObject



15
16
17
# File 'lib/fex/response.rb', line 15

def severity
  xpath("//Notifications/Severity").inner_text
end