Class: EnotasApi::V2::ConsultarEmpresa
- Defined in:
- lib/enotas_api/v2/consultar_empresa.rb
Instance Attribute Summary
Attributes inherited from Request
#content, #method, #params, #result_object, #uri
Instance Method Summary collapse
-
#initialize(id) ⇒ ConsultarEmpresa
constructor
A new instance of ConsultarEmpresa.
Methods inherited from Request
#call, #call!, #param, #to_json, #to_url
Methods included from Sortable
Methods included from Searchable
Methods included from Paginable
Methods included from Filterable
Methods included from EncodingHelper
#encode_query_params, #url_encode
Constructor Details
#initialize(id) ⇒ ConsultarEmpresa
Returns a new instance of ConsultarEmpresa.
8 9 10 |
# File 'lib/enotas_api/v2/consultar_empresa.rb', line 8 def initialize(id) super(uri: "/v2/empresas/#{url_encode(id)}") end |