Class: FlexOps::Resources::Carriers
- Inherits:
-
Object
- Object
- FlexOps::Resources::Carriers
- Defined in:
- lib/flexops/resources/carriers.rb
Instance Attribute Summary collapse
-
#dhl ⇒ Object
readonly
Returns the value of attribute dhl.
-
#fedex ⇒ Object
readonly
Returns the value of attribute fedex.
-
#ups ⇒ Object
readonly
Returns the value of attribute ups.
-
#usps ⇒ Object
readonly
Returns the value of attribute usps.
Instance Method Summary collapse
-
#initialize(http) ⇒ Carriers
constructor
A new instance of Carriers.
Constructor Details
#initialize(http) ⇒ Carriers
Returns a new instance of Carriers.
14 15 16 17 18 19 20 |
# File 'lib/flexops/resources/carriers.rb', line 14 def initialize(http) @http = http @usps = UspsCarrier.new(http) @ups = UpsCarrier.new(http) @fedex = FedExCarrier.new(http) @dhl = DhlCarrier.new(http) end |
Instance Attribute Details
#dhl ⇒ Object (readonly)
Returns the value of attribute dhl.
12 13 14 |
# File 'lib/flexops/resources/carriers.rb', line 12 def dhl @dhl end |
#fedex ⇒ Object (readonly)
Returns the value of attribute fedex.
12 13 14 |
# File 'lib/flexops/resources/carriers.rb', line 12 def fedex @fedex end |
#ups ⇒ Object (readonly)
Returns the value of attribute ups.
12 13 14 |
# File 'lib/flexops/resources/carriers.rb', line 12 def ups @ups end |
#usps ⇒ Object (readonly)
Returns the value of attribute usps.
12 13 14 |
# File 'lib/flexops/resources/carriers.rb', line 12 def usps @usps end |