Module: Belpost
- Defined in:
- lib/belpost.rb,
lib/belpost/retry.rb,
lib/belpost/client.rb,
lib/belpost/errors.rb,
lib/belpost/version.rb,
lib/belpost/api_paths.rb,
lib/belpost/api_service.rb,
lib/belpost/models/batch.rb,
lib/belpost/configuration.rb,
lib/belpost/models/parcel.rb,
lib/belpost/models/batch_item.rb,
lib/belpost/models/api_response.rb,
lib/belpost/models/batch_status.rb,
lib/belpost/models/parcel_builder.rb,
lib/belpost/postal_delivery_types.rb,
lib/belpost/validations/batch_schema.rb,
lib/belpost/validations/parcel_schema.rb,
lib/belpost/models/customs_declaration.rb,
lib/belpost/validations/address_schema.rb,
lib/belpost/validations/postcode_schema.rb,
lib/belpost/validations/batch_item_schema.rb
Overview
Module for working with Belpochta API. Provides an interface for configuring and interacting with the API.
Defined Under Namespace
Modules: ApiPaths, Models, PostalDeliveryTypes, Validation Classes: ApiError, ApiService, AuthenticationError, Client, Configuration, ConfigurationError, Error, InvalidRequestError, NetworkError, ParseError, RateLimitError, RequestError, Retry, ServerError, TimeoutError, ValidationError
Constant Summary collapse
- VERSION =
"0.13.4"
Class Method Summary collapse
-
.configuration ⇒ Belpost::Configuration
Returns the current configuration.
-
.configure {|config| ... } ⇒ Object
Setting up the API configuration.
-
.reset ⇒ Object
Resets the configuration to default values.
Class Method Details
.configuration ⇒ Belpost::Configuration
Returns the current configuration.
40 41 42 |
# File 'lib/belpost.rb', line 40 def self.configuration @configuration ||= Configuration.new end |
.configure {|config| ... } ⇒ Object
Setting up the API configuration.
34 35 36 |
# File 'lib/belpost.rb', line 34 def self.configure yield configuration end |
.reset ⇒ Object
Resets the configuration to default values.
45 46 47 |
# File 'lib/belpost.rb', line 45 def self.reset @configuration = Configuration.new end |