Class: RoyalMailApi::Response
- Inherits:
-
Object
- Object
- RoyalMailApi::Response
- Defined in:
- lib/royal_mail_api/response.rb
Defined Under Namespace
Classes: Shipment
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#http ⇒ Object
Returns the value of attribute http.
-
#parser ⇒ Object
Returns the value of attribute parser.
-
#shipments ⇒ Object
Returns the value of attribute shipments.
-
#warnings ⇒ Object
Returns the value of attribute warnings.
Instance Method Summary collapse
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(response) ⇒ Response
Returns a new instance of Response.
16 17 18 19 |
# File 'lib/royal_mail_api/response.rb', line 16 def initialize(response) @parser = RoyalMailApi::XmlParser.new set_attrs(response) end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
3 4 5 |
# File 'lib/royal_mail_api/response.rb', line 3 def body @body end |
#errors ⇒ Object
Returns the value of attribute errors.
3 4 5 |
# File 'lib/royal_mail_api/response.rb', line 3 def errors @errors end |
#http ⇒ Object
Returns the value of attribute http.
3 4 5 |
# File 'lib/royal_mail_api/response.rb', line 3 def http @http end |
#parser ⇒ Object
Returns the value of attribute parser.
3 4 5 |
# File 'lib/royal_mail_api/response.rb', line 3 def parser @parser end |
#shipments ⇒ Object
Returns the value of attribute shipments.
3 4 5 |
# File 'lib/royal_mail_api/response.rb', line 3 def shipments @shipments end |
#warnings ⇒ Object
Returns the value of attribute warnings.
3 4 5 |
# File 'lib/royal_mail_api/response.rb', line 3 def warnings @warnings end |