Class: FlexOps::Resources::Carriers

Inherits:
Object
  • Object
show all
Defined in:
lib/flexops/resources/carriers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dhlObject (readonly)

Returns the value of attribute dhl.



12
13
14
# File 'lib/flexops/resources/carriers.rb', line 12

def dhl
  @dhl
end

#fedexObject (readonly)

Returns the value of attribute fedex.



12
13
14
# File 'lib/flexops/resources/carriers.rb', line 12

def fedex
  @fedex
end

#upsObject (readonly)

Returns the value of attribute ups.



12
13
14
# File 'lib/flexops/resources/carriers.rb', line 12

def ups
  @ups
end

#uspsObject (readonly)

Returns the value of attribute usps.



12
13
14
# File 'lib/flexops/resources/carriers.rb', line 12

def usps
  @usps
end