Class: Stosp::Client
- Inherits:
-
Object
- Object
- Stosp::Client
- Includes:
- HTTParty, AvailableDistributors, Calculate, CheckOrders, Connection, Create, ExportFullReport, ExportPurchasesList, Import, ProcessOrders, PurchaseExport, PurchaseExportMeta, StickerPrint
- Defined in:
- lib/stosp/client.rb,
lib/stosp/client/create.rb,
lib/stosp/client/import.rb,
lib/stosp/client/calculate.rb,
lib/stosp/client/connection.rb,
lib/stosp/client/check_orders.rb,
lib/stosp/client/sticker_print.rb,
lib/stosp/client/process_orders.rb,
lib/stosp/client/purchase_export.rb,
lib/stosp/client/export_full_report.rb,
lib/stosp/client/purchase_export_meta.rb,
lib/stosp/client/export_purchases_list.rb,
lib/stosp/client/available_distributors.rb
Defined Under Namespace
Modules: AvailableDistributors, Calculate, CheckOrders, Connection, Create, ExportFullReport, ExportPurchasesList, Import, ProcessOrders, PurchaseExport, PurchaseExportMeta, StickerPrint
Instance Method Summary collapse
-
#initialize(access_token:) ⇒ Client
constructor
A new instance of Client.
Methods included from StickerPrint
Methods included from PurchaseExportMeta
Methods included from PurchaseExport
Methods included from ProcessOrders
Methods included from Import
Methods included from ExportPurchasesList
Methods included from ExportFullReport
Methods included from Create
Methods included from CheckOrders
Methods included from Calculate
Methods included from AvailableDistributors
Methods included from Connection
Constructor Details
#initialize(access_token:) ⇒ Client
Returns a new instance of Client.
32 33 34 35 36 |
# File 'lib/stosp/client.rb', line 32 def initialize(access_token:) @access_token = access_token self.class.base_uri 'https://www.100sp.ru' self.class.headers 'x-api-key' => @access_token end |