Class: BsellerRuby::Item

Inherits:
Base
  • Object
show all
Defined in:
lib/bseller_ruby/item.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Base

api, authentication, call, camelize, collection_name, create, execute, get, get_wsdl, #initialize, json_parse, post, put, to_params, ws

Constructor Details

This class inherits a constructor from BsellerRuby::Base

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



3
4
5
# File 'lib/bseller_ruby/item.rb', line 3

def response
  @response
end

Class Method Details

.confirm_to_list!(params) ⇒ Object

<confirmaSN />: X(1), Informa se a consulta foi recebida e processada corretamente

S 

<tpInterface />: X(15), Interface cadastrada na ESEA0130. Se NULL

envia a interface padr


26
27
28
# File 'lib/bseller_ruby/item.rb', line 26

def self.confirm_to_list!(params)
  call(:confirma_consulta_itens, params).result
end

.find(id_item, interface = nil) ⇒ Object

<idItem />: X(50), Sim, Código do item

<tpInterface />: X(15), Não, Código do tipo de interface



33
34
35
# File 'lib/bseller_ruby/item.rb', line 33

def self.find(id_item, interface=nil)
  get("itens/#{id_item}", interface ? {tpInterface: interface} : nil)
end

.get_list(params) ⇒ Object

<maxReg />: 9(9), Quantidade máxima de registros a ser retornada.

Se nulo ou zero tr

<confirmaSN />: X(1), Informa se vai chamar a interface confirmaConsultaItens

S 

<tpInterface />: X(15), Interface cadastrada na ESEA0130. Se NULL

envia a interface padr


15
16
17
# File 'lib/bseller_ruby/item.rb', line 15

def self.get_list(params)
  call(:consulta_itens, params).result
end