Class: Mirakl::Requests::S07

Inherits:
Object
  • Object
show all
Includes:
ApiOperations::Request
Defined in:
lib/mirakl/requests/s07.rb

Constant Summary collapse

API_PATH =
'shops'

Class Method Summary collapse

Methods included from ApiOperations::Request

included, #request

Class Method Details

.call(params = {}, opts = {}) ⇒ Object



10
11
12
13
14
15
# File 'lib/mirakl/requests/s07.rb', line 10

def self.call(params = {}, opts = {})
  resp, opts = request(:put, API_PATH, params, opts)
  obj = MiraklObject.construct_from(resp.data, opts)

  obj
end