Class: Myparcel::API::Base
- Inherits:
-
Object
- Object
- Myparcel::API::Base
- Defined in:
- lib/myparcel/api/base.rb
Overview
Base class for all endpoints
Direct Known Subclasses
DeliveryOptions, Shipments, Tracktraces, WebhookSubscriptions
Instance Attribute Summary collapse
-
#authentication ⇒ Object
readonly
Returns the value of attribute authentication.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(authentication) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(authentication) ⇒ Base
Returns a new instance of Base.
8 9 10 |
# File 'lib/myparcel/api/base.rb', line 8 def initialize(authentication) @authentication = authentication end |
Instance Attribute Details
#authentication ⇒ Object (readonly)
Returns the value of attribute authentication.
6 7 8 |
# File 'lib/myparcel/api/base.rb', line 6 def authentication @authentication end |
#path ⇒ Object
Returns the value of attribute path.
5 6 7 |
# File 'lib/myparcel/api/base.rb', line 5 def path @path end |