Sha256: 077efb5a2102d05705fd2b69864b5e70265c086148b6f96e29ed99c84aa23a44
Contents?: true
Size: 1.58 KB
Versions: 2
Compression:
Stored size: 1.58 KB
Contents
# frozen_string_literal: true require 'novaposhta_api/version' module NovaposhtaApi autoload :Client, 'novaposhta_api/client' autoload :HttpClient, 'novaposhta_api/http_client' autoload :Resource, 'novaposhta_api/resource' autoload :Model, 'novaposhta_api/model' autoload :Collection, 'novaposhta_api/collection' module Middlewares autoload :ErrorHandling, 'novaposhta_api/middlewares/error_handling' autoload :ParseJson, 'novaposhta_api/middlewares/parse_json' end module Resources autoload :CityResource, 'novaposhta_api/resources/city_resource' autoload :CounterpartyResource, 'novaposhta_api/resources/counterparty_resource' autoload :InternetDocumentResource, 'novaposhta_api/resources/internet_document_resource' autoload :SettlementResource, 'novaposhta_api/resources/settlement_resource' autoload :WarehouseResource, 'novaposhta_api/resources/warehouse_resource' end module Models autoload :City, 'novaposhta_api/models/city' autoload :Counterparty, 'novaposhta_api/models/counterparty' autoload :InternetDocument, 'novaposhta_api/models/internet_document' autoload :Settlement, 'novaposhta_api/models/settlement' autoload :Warehouse, 'novaposhta_api/models/warehouse' end Error = Class.new(StandardError) ResourceError = Class.new(Error) ResponseError = Class.new(Error) if Faraday::Middleware.respond_to? :register_middleware Faraday::Response.register_middleware json: NovaposhtaApi::Middlewares::ParseJson Faraday::Response.register_middleware error_handling: NovaposhtaApi::Middlewares::ErrorHandling end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
novaposhta_api-0.1.1 | lib/novaposhta_api.rb |
novaposhta_api-0.1.0 | lib/novaposhta_api.rb |