Class: Horoshop::ImportResiduences
- 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
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Methods included from Connection
#connection, #mixin_token!, #post
Constructor Details
This class inherits a constructor from Horoshop::Base
Instance Method Details
#call(body) ⇒ Object
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 |