Class: Shippinglogic::Service
- Inherits:
-
Proxy
- Object
- Proxy
- Shippinglogic::Service
- Includes:
- HTTParty, Attributes, Validation
- Defined in:
- lib/shippinglogic/service.rb
Direct Known Subclasses
FedEx::Cancel, FedEx::Rate, FedEx::Service, FedEx::Ship, FedEx::Track, UPS::Cancel, UPS::Label, UPS::Rate, UPS::Service, UPS::Track
Instance Attribute Summary (collapse)
-
- (Object) base
Returns the value of attribute base.
Instance Method Summary (collapse)
-
- (Service) initialize(base, attributes = {})
constructor
Accepts the base service object as a single parameter so that we can access authentication credentials and options.
Methods included from Validation
Methods included from Attributes
Constructor Details
- (Service) initialize(base, attributes = {})
Accepts the base service object as a single parameter so that we can access authentication credentials and options.
16 17 18 19 |
# File 'lib/shippinglogic/service.rb', line 16 def initialize(base, attributes = {}) self.base = base super end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Shippinglogic::Proxy
Instance Attribute Details
- (Object) base
Returns the value of attribute base
12 13 14 |
# File 'lib/shippinglogic/service.rb', line 12 def base @base end |