Module: Vend
- Defined in:
- lib/vend/resources/tag.rb,
lib/vend.rb,
lib/vend/config.rb,
lib/vend/request.rb,
lib/vend/version.rb,
lib/vend/exception.rb,
lib/vend/connection.rb,
lib/vend/resources/tax.rb,
lib/vend/resources/sale.rb,
lib/vend/resources/user.rb,
lib/vend/middleware/auth.rb,
lib/vend/resources/brand.rb,
lib/vend/oauth2/auth_code.rb,
lib/vend/resource_actions.rb,
lib/vend/resources/outlet.rb,
lib/vend/resources/search.rb,
lib/vend/resources/product.rb,
lib/vend/resources/webhook.rb,
lib/vend/resources/customer.rb,
lib/vend/resources/register.rb,
lib/vend/resources/resource.rb,
lib/vend/resources/supplier.rb,
lib/vend/resources/inventory.rb,
lib/vend/resources/price_book.rb,
lib/vend/resources/consignment.rb,
lib/vend/resources/payment_type.rb,
lib/vend/resources/product_type.rb,
lib/vend/resources/product_image.rb,
lib/vend/resources/customer_group.rb,
lib/vend/middleware/http_exception.rb,
lib/vend/resources/outlet_product_tax.rb,
lib/vend/resources/price_book_product.rb
Overview
PriceBookProducts docs.vendhq.com/reference#price-book-products
Defined Under Namespace
Modules: Connection, HttpErrors, Middleware, Oauth2 Classes: BadGateway, BadRequest, BandwidthLimitExceeded, Brand, Config, Consignment, Customer, CustomerGroup, Forbidden, GatewayTimeout, HttpError, InternalServerError, Inventory, MethodNotAllowed, NotAccepted, NotFound, Outlet, OutletProductTax, PathBuilder, PaymentType, PriceBook, PriceBookProduct, Product, ProductImage, ProductType, Register, Request, Resource, ResourceActions, ResourceConflict, Sale, Search, ServiceUnavailable, Supplier, Tag, Tax, TimeOut, TooManyRequests, Unauthorized, User, Webhook
Constant Summary collapse
- VERSION =
'0.1.0'
Class Attribute Summary collapse
-
.api ⇒ Object
readonly
Returns the value of attribute api.
-
.config ⇒ Object
readonly
Returns the value of attribute config.
Class Method Summary collapse
Class Attribute Details
.api ⇒ Object (readonly)
Returns the value of attribute api.
21 22 23 |
# File 'lib/vend.rb', line 21 def api @api end |
.config ⇒ Object (readonly)
Returns the value of attribute config.
21 22 23 |
# File 'lib/vend.rb', line 21 def config @config end |
Class Method Details
.configure ⇒ Object
23 24 25 26 |
# File 'lib/vend.rb', line 23 def configure @config = Vend::Config.new.tap { |h| yield(h) } @api = Vend::Connection.build(@config) end |