Class: Anypost::Resources::Base Private

Inherits:
Object
  • Object
show all
Defined in:
lib/anypost/resources/base.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Shared base for the API resources: holds the transport, wraps decoded object responses as Anypost::Response instances, and builds Pages.

Instance Method Summary collapse

Constructor Details

#initialize(http) ⇒ Base

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 Base.



12
13
14
# File 'lib/anypost/resources/base.rb', line 12

def initialize(http)
  @http = http
end