Class: EnotasApi::V2::EmitirNfc

Inherits:
Request
  • Object
show all
Defined in:
lib/enotas_api/v2/emitir_nfc.rb

Instance Attribute Summary

Attributes inherited from Request

#content, #method, #params, #result_object, #uri

Instance Method Summary collapse

Methods inherited from Request

#call, #call!, #param, #to_json, #to_url

Methods included from Sortable

included

Methods included from Searchable

included

Methods included from Paginable

included

Methods included from Filterable

included

Methods included from EncodingHelper

#encode_query_params, #url_encode

Constructor Details

#initialize(empresa_id, nf) ⇒ EmitirNfc

Returns a new instance of EmitirNfc.



8
9
10
# File 'lib/enotas_api/v2/emitir_nfc.rb', line 8

def initialize(empresa_id, nf)
  super(method: :POST, uri: "/v2/empresas/#{url_encode(empresa_id)}/nfc-e", content: nf.to_json)
end