Class: DeliveryFivePostClient::Resources::API::V2
- Inherits:
-
Object
- Object
- DeliveryFivePostClient::Resources::API::V2
- Defined in:
- lib/delivery_five_post_client/resources/api/v2.rb,
lib/delivery_five_post_client/resources/api/v2/points.rb,
lib/delivery_five_post_client/resources/api/v2/partners.rb,
lib/delivery_five_post_client/resources/api/v2/points/sl.rb
Defined Under Namespace
Instance Attribute Summary collapse
- #partners ⇒ DeliveryFivePostClient::Resources::API::V2::Partners readonly
- #points ⇒ DeliveryFivePostClient::Resources::API::V2::Points readonly
Instance Method Summary collapse
-
#initialize(client:) ⇒ V2
constructor
private
A new instance of V2.
Constructor Details
#initialize(client:) ⇒ V2
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of V2.
16 17 18 19 20 |
# File 'lib/delivery_five_post_client/resources/api/v2.rb', line 16 def initialize(client:) @client = client @partners = DeliveryFivePostClient::Resources::API::V2::Partners.new(client: client) @points = DeliveryFivePostClient::Resources::API::V2::Points.new(client: client) end |
Instance Attribute Details
#partners ⇒ DeliveryFivePostClient::Resources::API::V2::Partners (readonly)
8 9 10 |
# File 'lib/delivery_five_post_client/resources/api/v2.rb', line 8 def partners @partners end |
#points ⇒ DeliveryFivePostClient::Resources::API::V2::Points (readonly)
11 12 13 |
# File 'lib/delivery_five_post_client/resources/api/v2.rb', line 11 def points @points end |