Class: Omniship::ShipResponse

Inherits:
Response show all
Defined in:
lib/omniship/ship_response.rb

Instance Attribute Summary collapse

Attributes inherited from Response

#message, #params, #request, #test, #xml

Instance Method Summary collapse

Methods inherited from Response

#success?, #test?

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, message, params = {}, options = {})
  @tracking_number = params[:tracking_number]
  @label_encoded   = params[:label_encoded]
  super
end

Instance Attribute Details

#label_encodedObject (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_numberObject (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