Class: Horoshop::ImportResiduences

Inherits:
Base
  • Object
show all
Defined in:
lib/horoshop/import_residues.rb

Overview

import_residues to the horoshop

Constant Summary collapse

URL =
'api/catalog/importResidues/'
STATUS_OK =
'OK'

Constants included from Connection

Connection::ERROR

Instance Attribute Summary

Attributes inherited from Base

#horoshop

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Connection

#connection, #mixin_token!, #post

Constructor Details

This class inherits a constructor from Horoshop::Base

Instance Method Details

#call(body) ⇒ Object

Parameters:

  • (Hash)


10
11
12
13
# File 'lib/horoshop/import_residues.rb', line 10

def call(body)
  body = post(horoshop: horoshop, url: URL, body: body, add_token: true)
  parse_response(body)
end