Module: Shoppy

Defined in:
lib/shoppy.rb,
lib/shoppy/client.rb,
lib/shoppy/engine.rb,
lib/shoppy/version.rb,
app/models/shoppy/log.rb,
app/models/shoppy/user.rb,
app/models/shoppy/admin.rb,
app/models/shoppy/brand.rb,
app/models/shoppy/order.rb,
app/models/shoppy/review.rb,
app/models/shoppy/product.rb,
app/models/shoppy/setting.rb,
app/models/shoppy/variant.rb,
app/models/shoppy/category.rb,
app/models/shoppy/customer.rb,
app/models/shoppy/shipment.rb,
app/models/shoppy/cart_item.rb,
app/models/shoppy/inventory.rb,
app/models/shoppy/order_line.rb,
app/helpers/shoppy/cart_helper.rb,
app/helpers/shoppy/home_helper.rb,
app/helpers/shoppy/logs_helper.rb,
app/models/shoppy/manufacturer.rb,
app/models/shoppy/options_item.rb,
app/models/shoppy/options_group.rb,
app/helpers/shoppy/brands_helper.rb,
app/helpers/shoppy/orders_helper.rb,
app/models/shoppy/payment_method.rb,
app/models/shoppy/stock_location.rb,
app/helpers/shoppy/options_helper.rb,
app/helpers/shoppy/reviews_helper.rb,
app/helpers/shoppy/accounts_helper.rb,
app/helpers/shoppy/products_helper.rb,
app/helpers/shoppy/settings_helper.rb,
app/helpers/shoppy/variants_helper.rb,
app/models/shoppy/customer_address.rb,
app/helpers/shoppy/locations_helper.rb,
app/helpers/shoppy/shipments_helper.rb,
app/helpers/shoppy/categories_helper.rb,
app/helpers/shoppy/application_helper.rb,
app/helpers/shoppy/inventories_helper.rb,
app/controllers/shoppy/cart_controller.rb,
app/controllers/shoppy/home_controller.rb,
app/controllers/shoppy/logs_controller.rb,
app/helpers/shoppy/manufacturers_helper.rb,
app/controllers/shoppy/brands_controller.rb,
app/controllers/shoppy/orders_controller.rb,
app/controllers/shoppy/options_controller.rb,
app/controllers/shoppy/reviews_controller.rb,
app/controllers/shoppy/accounts_controller.rb,
app/controllers/shoppy/products_controller.rb,
app/controllers/shoppy/sessions_controller.rb,
app/controllers/shoppy/settings_controller.rb,
app/controllers/shoppy/variants_controller.rb,
app/controllers/shoppy/locations_controller.rb,
app/controllers/shoppy/shipments_controller.rb,
app/controllers/shoppy/categories_controller.rb,
app/helpers/shoppy/customer_addresses_helper.rb,
app/controllers/shoppy/application_controller.rb,
app/controllers/shoppy/inventories_controller.rb,
app/controllers/shoppy/manufacturers_controller.rb,
app/controllers/shoppy/customer_addresses_controller.rb

Defined Under Namespace

Modules: AccountsHelper, ApplicationHelper, BrandsHelper, CartHelper, CategoriesHelper, CustomerAddressesHelper, HomeHelper, InventoriesHelper, LocationsHelper, LogsHelper, ManufacturersHelper, OptionsHelper, OrdersHelper, ProductsHelper, ReviewsHelper, SettingsHelper, ShipmentsHelper, VariantsHelper Classes: AccountsController, Admin, ApplicationController, Brand, BrandsController, CartController, CartItem, CategoriesController, Category, Client, Customer, CustomerAddress, CustomerAddressesController, Engine, HomeController, InventoriesController, Inventory, LocationsController, Log, LogsController, Manufacturer, ManufacturersController, OptionsController, OptionsGroup, OptionsItem, Order, OrderLine, OrdersController, PaymentMethod, Product, ProductsController, Review, ReviewsController, SessionsController, Setting, SettingsController, Shipment, ShipmentsController, StockLocation, User, Variant, VariantsController

Constant Summary collapse

VERSION =
"0.9.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_baseObject

Returns the value of attribute api_base.



7
8
9
# File 'lib/shoppy/client.rb', line 7

def api_base
  @api_base
end

Class Method Details

.api_url(url = '') ⇒ Object



10
11
12
# File 'lib/shoppy/client.rb', line 10

def self.api_url(url='')
  "#{@api_base}/#{url}"
end