Class: B2W::Batch

Inherits:
Base
  • Object
show all
Defined in:
lib/b2w/batch.rb

Class Method Summary collapse

Methods inherited from Base

#[], camel_case, endpoint, execute, get, #initialize, #persisted?, post, #put, to_params, token, version

Constructor Details

This class inherits a constructor from B2W::Base

Class Method Details

.find(sku, type) ⇒ Object



11
12
13
# File 'lib/b2w/batch.rb', line 11

def self.find(sku, type)
  get("#{path}/#{type}/#{sku}")
end

.price(params) ⇒ Object



7
8
9
# File 'lib/b2w/batch.rb', line 7

def self.price(params)
  post("#{path}/price", params)
end

.stock(params) ⇒ Object



3
4
5
# File 'lib/b2w/batch.rb', line 3

def self.stock(params)
  post("#{path}/stock", params)
end