Module: Zaikio::Warehouse
- Defined in:
- lib/zaikio/warehouse.rb,
lib/zaikio/warehouse/sku.rb,
lib/zaikio/warehouse/base.rb,
lib/zaikio/warehouse/site.rb,
lib/zaikio/warehouse/person.rb,
lib/zaikio/warehouse/contact.rb,
lib/zaikio/warehouse/deposit.rb,
lib/zaikio/warehouse/version.rb,
lib/zaikio/warehouse/material.rb,
lib/zaikio/warehouse/transfer.rb,
lib/zaikio/warehouse/workstep.rb,
lib/zaikio/warehouse/operation.rb,
lib/zaikio/warehouse/warehouse.rb,
lib/zaikio/warehouse/correction.rb,
lib/zaikio/warehouse/withdrawal.rb,
lib/zaikio/warehouse/consumption.rb,
lib/zaikio/warehouse/organization.rb,
lib/zaikio/warehouse/storage_area.rb,
lib/zaikio/warehouse/configuration.rb,
lib/zaikio/warehouse/manifest_entry.rb,
lib/zaikio/warehouse/transfer_request.rb,
lib/zaikio/warehouse/call_off_agreement.rb,
lib/zaikio/warehouse/withdrawal_request.rb,
lib/zaikio/warehouse/consumption_request.rb,
lib/zaikio/warehouse/material_requirement.rb,
lib/zaikio/warehouse/material_reservation.rb,
lib/zaikio/warehouse/finished_goods/call_off.rb,
lib/zaikio/warehouse/finished_goods/material.rb,
lib/zaikio/warehouse/material_manifest_entry.rb,
lib/zaikio/warehouse/consumption_announcement.rb,
lib/zaikio/warehouse/consumption_request_transfer.rb,
lib/zaikio/warehouse/transfer_request_cancelation.rb,
lib/zaikio/warehouse/consumption_request_cancelation.rb,
lib/zaikio/warehouse/material_reservation_cancelation.rb,
lib/zaikio/warehouse/material_reservation_fulfillment.rb
Overview
Namespace for the Zaikio Warehouse Client
Defined Under Namespace
Modules: FinishedGoods Classes: Base, CallOffAgreement, Configuration, Consumption, ConsumptionAnnouncement, ConsumptionRequest, ConsumptionRequestCancelation, ConsumptionRequestTransfer, Contact, Correction, Deposit, ManifestEntry, Material, MaterialManifestEntry, MaterialRequirement, MaterialReservation, MaterialReservationCancelation, MaterialReservationFulfillment, Operation, Organization, Person, SKU, Site, StorageArea, Transfer, TransferRequest, TransferRequestCancelation, Warehouse, Withdrawal, WithdrawalRequest, Workstep
Constant Summary collapse
- VERSION =
"0.9.0"
Class Attribute Summary collapse
-
.configuration ⇒ Object
readonly
Returns the value of attribute configuration.
Class Method Summary collapse
- .configure {|@configuration| ... } ⇒ Object
- .create_connection ⇒ Object
- .with_token(token, &block) ⇒ Object
Class Attribute Details
.configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
49 50 51 |
# File 'lib/zaikio/warehouse.rb', line 49 def configuration @configuration end |
Class Method Details
.configure {|@configuration| ... } ⇒ Object
53 54 55 56 57 58 59 |
# File 'lib/zaikio/warehouse.rb', line 53 def configure self.connection = nil @configuration ||= Configuration.new yield(@configuration) Base.connection = create_connection end |
.create_connection ⇒ Object
65 66 67 68 69 |
# File 'lib/zaikio/warehouse.rb', line 65 def create_connection self.connection = Zaikio::Client.create_connection(configuration).tap do |c| c.headers = { user_agent: "zaikio-warehouse-ruby #{Zaikio::Warehouse::VERSION}" } end end |
.with_token(token, &block) ⇒ Object
61 62 63 |
# File 'lib/zaikio/warehouse.rb', line 61 def with_token(token, &block) Zaikio::Client.with_token(token, &block) end |