Class: Fex::Response
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Fex::Response
- Extended by:
- Forwardable
- Defined in:
- lib/fex/response.rb
Direct Known Subclasses
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize ⇒ Response
constructor
A new instance of Response.
- #message ⇒ Object
- #severity ⇒ Object
Constructor Details
#initialize ⇒ Response
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
#code ⇒ Object
19 20 21 |
# File 'lib/fex/response.rb', line 19 def code xpath("//Notifications/Code").inner_text end |
#message ⇒ Object
23 24 25 |
# File 'lib/fex/response.rb', line 23 def xpath("//Notifications/Message").inner_text end |
#severity ⇒ Object
15 16 17 |
# File 'lib/fex/response.rb', line 15 def severity xpath("//Notifications/Severity").inner_text end |