Class: Omniship::ShipResponse
- Defined in:
- lib/omniship/ship_response.rb
Instance Attribute Summary collapse
-
#label_encoded ⇒ Object
readonly
Returns the value of attribute label_encoded.
-
#tracking_number ⇒ Object
readonly
Returns the value of attribute tracking_number.
Attributes inherited from Response
#message, #params, #request, #test, #xml
Instance Method Summary collapse
-
#initialize(success, message, params = {}, options = {}) ⇒ ShipResponse
constructor
A new instance of ShipResponse.
Methods inherited from Response
Constructor Details
#initialize(success, message, params = {}, options = {}) ⇒ ShipResponse
Returns a new instance of ShipResponse.
6 7 8 9 10 |
# File 'lib/omniship/ship_response.rb', line 6 def initialize(success, , params = {}, = {}) @tracking_number = params[:tracking_number] @label_encoded = params[:label_encoded] super end |
Instance Attribute Details
#label_encoded ⇒ Object (readonly)
Returns the value of attribute label_encoded.
4 5 6 |
# File 'lib/omniship/ship_response.rb', line 4 def label_encoded @label_encoded end |
#tracking_number ⇒ Object (readonly)
Returns the value of attribute tracking_number.
3 4 5 |
# File 'lib/omniship/ship_response.rb', line 3 def tracking_number @tracking_number end |