Class: Abacos::Customer
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Class Method Summary collapse
Methods inherited from Base
available, call, collection_name, #confirm!, create, execute, #initialize, #persisted?
Constructor Details
This class inherits a constructor from Abacos::Base
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/abacos/customer.rb', line 3 def response @response end |
Class Method Details
.create!(*params, chave_identificacao:) ⇒ Object
6 7 8 |
# File 'lib/abacos/customer.rb', line 6 def self.create!(*params, chave_identificacao:) create :cadastrar_cliente, { chave_identificacao: chave_identificacao }.merge(lista_de_clientes: params.map { |param| { dados_clientes: param }}) end |