Module: Vend

Defined in:
lib/vend/resources/inventory.rb,
lib/vend.rb,
lib/vend/store.rb,
lib/vend/config.rb,
lib/vend/errors.rb,
lib/vend/version.rb,
lib/vend/resource.rb,
lib/vend/response.rb,
lib/vend/resources/tax.rb,
lib/vend/resources/sale.rb,
lib/vend/resources/user.rb,
lib/vend/remote_resource.rb,
lib/vend/resources/brand.rb,
lib/vend/resources/outlet.rb,
lib/vend/resources/contact.rb,
lib/vend/resources/product.rb,
lib/vend/resources/customer.rb,
lib/vend/resources/register.rb,
lib/vend/resources/supplier.rb,
lib/vend/resource_collection.rb,
lib/vend/resources/payment_type.rb,
lib/vend/resources/product_type.rb,
lib/vend/resources/price_book_entry.rb,
lib/vend/resources/register_sale_payment.rb,
lib/vend/resources/register_sale_product.rb

Overview

TODO: Implement the attribute declaration as a Proc to avoid this

Defined Under Namespace

Modules: Attributes, Config, DeclarativeSetters, Finders, HasResources, Paths Classes: Brand, Contact, Customer, Error, InvalidConfig, Inventory, Outlet, PaymentType, PriceBookEntry, Product, ProductType, Register, RegisterSalePayment, RegisterSaleProduct, RemoteResource, Resource, ResourceCollection, Response, Sale, ServerError, Store, Supplier, Tax, Unauthorized, User, ValidationFailed

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.config(&block) ⇒ Object



47
48
49
50
51
52
53
# File 'lib/vend.rb', line 47

def config(&block)
  if block_given?
    block.call(Vend::Config)
  else
    Vend::Config
  end
end

.domainObject



43
44
45
# File 'lib/vend.rb', line 43

def domain
  @domain || "vendhq.com"
end

.schemeObject



39
40
41
# File 'lib/vend.rb', line 39

def scheme
  @scheme || "https"
end