Module: Veeqo
- Defined in:
- lib/veeqo.rb,
lib/veeqo/base.rb,
lib/veeqo/order.rb,
lib/veeqo/store.rb,
lib/veeqo/client.rb,
lib/veeqo/company.rb,
lib/veeqo/product.rb,
lib/veeqo/version.rb,
lib/veeqo/customer.rb,
lib/veeqo/response.rb,
lib/veeqo/shipment.rb,
lib/veeqo/supplier.rb,
lib/veeqo/warehouse.rb,
lib/veeqo/actions/base.rb,
lib/veeqo/actions/find.rb,
lib/veeqo/actions/list.rb,
lib/veeqo/configuration.rb,
lib/veeqo/actions/delete.rb,
lib/veeqo/purchase_order.rb,
lib/veeqo/delivery_method.rb
Defined Under Namespace
Modules: Actions
Classes: Base, Client, Company, Configuration, Customer, DeliveryMethod, Order, Product, PurchaseOrder, Response, ResponseObject, Shipment, Store, Supplier, Warehouse
Constant Summary
- VERSION =
"0.1.0".freeze
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
14
15
16
|
# File 'lib/veeqo/configuration.rb', line 14
def self.configuration
@configuration ||= Configuration.new
end
|
10
11
12
|
# File 'lib/veeqo/configuration.rb', line 10
def self.configure
yield configuration
end
|
.delete_resource(end_point, resource_id) ⇒ Object
54
55
56
|
# File 'lib/veeqo/client.rb', line 54
def self.delete_resource(end_point, resource_id)
Client.new(:delete, [end_point, resource_id].join("/")).execute
end
|
.get_resource(end_point, attributes = {}) ⇒ Object
42
43
44
|
# File 'lib/veeqo/client.rb', line 42
def self.get_resource(end_point, attributes = {})
Client.new(:get, end_point, attributes).execute
end
|
.post_resource(end_point, attributes) ⇒ Object
46
47
48
|
# File 'lib/veeqo/client.rb', line 46
def self.post_resource(end_point, attributes)
Client.new(:post, end_point, attributes).execute
end
|
.put_resource(end_point, attributes) ⇒ Object
50
51
52
|
# File 'lib/veeqo/client.rb', line 50
def self.put_resource(end_point, attributes)
Client.new(:put, end_point, attributes).execute
end
|