Module: DearInventory

Extended by:
T::Sig
Defined in:
lib/dear_inventory/error.rb,
lib/dear_inventory.rb,
lib/dear_inventory/model.rb,
lib/dear_inventory/config.rb,
lib/dear_inventory/version.rb,
lib/dear_inventory/resource.rb,
lib/dear_inventory/response.rb,
lib/dear_inventory/validator.rb,
lib/dear_inventory/parameters.rb,
lib/dear_inventory/environment.rb,
lib/dear_inventory/lib/request.rb,
lib/dear_inventory/models/sale.rb,
lib/dear_inventory/models/sales.rb,
lib/dear_inventory/lib/date_time.rb,
lib/dear_inventory/test_response.rb,
lib/dear_inventory/errors/request.rb,
lib/dear_inventory/models/address.rb,
lib/dear_inventory/models/product.rb,
lib/dear_inventory/models/request.rb,
lib/dear_inventory/resources/sale.rb,
lib/dear_inventory/models/customer.rb,
lib/dear_inventory/models/products.rb,
lib/dear_inventory/models/purchase.rb,
lib/dear_inventory/models/supplier.rb,
lib/dear_inventory/validators/enum.rb,
lib/dear_inventory/validators/guid.rb,
lib/dear_inventory/validators/time.rb,
lib/dear_inventory/errors/api_limit.rb,
lib/dear_inventory/models/customers.rb,
lib/dear_inventory/models/purchases.rb,
lib/dear_inventory/errors/validation.rb,
lib/dear_inventory/lib/is_a_subclass.rb,
lib/dear_inventory/models/attachment.rb,
lib/dear_inventory/models/sales/line.rb,
lib/dear_inventory/resources/product.rb,
lib/dear_inventory/validators/string.rb,
lib/dear_inventory/errors/bad_request.rb,
lib/dear_inventory/lib/endpoint_class.rb,
lib/dear_inventory/models/sales/order.rb,
lib/dear_inventory/models/sales/quote.rb,
lib/dear_inventory/models/transaction.rb,
lib/dear_inventory/resources/customer.rb,
lib/dear_inventory/resources/purchase.rb,
lib/dear_inventory/validators/boolean.rb,
lib/dear_inventory/validators/integer.rb,
lib/dear_inventory/models/test_request.rb,
lib/dear_inventory/validators/required.rb,
lib/dear_inventory/errors/no_more_pages.rb,
lib/dear_inventory/errors/not_paginated.rb,
lib/dear_inventory/models/reorder_level.rb,
lib/dear_inventory/models/sales/invoice.rb,
lib/dear_inventory/models/sales_results.rb,
lib/dear_inventory/parameters/sale/show.rb,
lib/dear_inventory/models/purchases/line.rb,
lib/dear_inventory/parameters/sale/index.rb,
lib/dear_inventory/models/purchases/order.rb,
lib/dear_inventory/models/purchases/stock.rb,
lib/dear_inventory/parameters/sale/delete.rb,
lib/dear_inventory/models/sales/fulfilment.rb,
lib/dear_inventory/models/shipping_address.rb,
lib/dear_inventory/models/advanced_purchase.rb,
lib/dear_inventory/models/customers/address.rb,
lib/dear_inventory/models/customers/contact.rb,
lib/dear_inventory/models/products/movement.rb,
lib/dear_inventory/models/purchases/invoice.rb,
lib/dear_inventory/models/purchases_results.rb,
lib/dear_inventory/models/sales/credit_note.rb,
lib/dear_inventory/parameters/product/index.rb,
lib/dear_inventory/parameters/purchase/show.rb,
lib/dear_inventory/models/inventory_movement.rb,
lib/dear_inventory/models/sales/invoice_line.rb,
lib/dear_inventory/models/sales/payment_line.rb,
lib/dear_inventory/parameters/customer/index.rb,
lib/dear_inventory/parameters/purchase/index.rb,
lib/dear_inventory/models/product_availability.rb,
lib/dear_inventory/models/purchases/stock_line.rb,
lib/dear_inventory/models/sales/manual_journal.rb,
lib/dear_inventory/resources/advanced_purchase.rb,
lib/dear_inventory/models/additional_attributes.rb,
lib/dear_inventory/models/purchases/credit_note.rb,
lib/dear_inventory/models/purchases/invoice_line.rb,
lib/dear_inventory/models/purchases/payment_line.rb,
lib/dear_inventory/models/purchases/unstock_line.rb,
lib/dear_inventory/models/sales/fulfilments/ship.rb,
lib/dear_inventory/models/sales/additional_charge.rb,
lib/dear_inventory/resources/product_availability.rb,
lib/dear_inventory/models/purchases/advanced/stock.rb,
lib/dear_inventory/models/purchases/manual_journal.rb,
lib/dear_inventory/models/bill_of_materials_product.rb,
lib/dear_inventory/models/bill_of_materials_service.rb,
lib/dear_inventory/models/sales/manual_journal_line.rb,
lib/dear_inventory/models/purchases/advanced/invoice.rb,
lib/dear_inventory/parameters/advanced_purchase/show.rb,
lib/dear_inventory/models/purchases/additional_charge.rb,
lib/dear_inventory/models/purchases/advanced/put_away.rb,
lib/dear_inventory/models/sales/fulfilments/pick_pack.rb,
lib/dear_inventory/models/sales/fulfilments/ship_line.rb,
lib/dear_inventory/models/product_availability_results.rb,
lib/dear_inventory/models/purchases/inventory_movement.rb,
lib/dear_inventory/models/purchases/advanced/stock_line.rb,
lib/dear_inventory/models/purchases/manual_journal_line.rb,
lib/dear_inventory/models/purchases/advanced/credit_note.rb,
lib/dear_inventory/parameters/product_availability/index.rb,
lib/dear_inventory/models/sales/invoice_additional_charge.rb,
lib/dear_inventory/models/purchases/advanced/put_away_line.rb,
lib/dear_inventory/models/sales/fulfilments/pick_pack_line.rb,
lib/dear_inventory/models/purchases/advanced/manual_journal.rb,
lib/dear_inventory/models/purchases/invoice_additional_charge.rb

Overview

typed: strong frozen_string_literal: true

Defined Under Namespace

Modules: IsASubclass, Models, Validators Classes: APILimitError, AdvancedPurchase, BadRequestError, Config, Customer, DateTime, EndpointClass, Environment, Error, Model, NoMorePagesError, NotPaginatedError, Parameters, Product, ProductAvailability, Purchase, Request, RequestError, Resource, Response, Sale, TestResponse, ValidationError, Validator

Constant Summary collapse

VERSION =
"1.4.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject (readonly)

Returns the value of attribute config.



135
136
137
# File 'lib/dear_inventory.rb', line 135

def config
  @config
end

Class Method Details

.configure {|config| ... } ⇒ Object

Yields:



139
140
141
# File 'lib/dear_inventory.rb', line 139

def configure(&block)
  yield config
end