class WebmaniabrNfeRuby::ConsultNfe
Public Class Methods
new(options = {})
click to toggle source
Calls superclass method
WebmaniabrNfeRuby::ApiInterface::new
# File lib/webmaniabr_nfe_ruby/consult_nfe.rb, line 3 def initialize(options = {}) @key = options[:key] super('nfe/consulta') end
Public Instance Methods
request()
click to toggle source
# File lib/webmaniabr_nfe_ruby/consult_nfe.rb, line 9 def request return process(method: 'GET', params: { chave: @key }) end