Class: DeliveryFivePostClient::Resources::API::V2

Inherits:
Object
  • Object
show all
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

Classes: Partners, Points

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:



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