Sha256: e8f0e4682526201692d79f6ac02d3dbdfaeba3d8c25bff21eaa0381022aef963
Contents?: true
Size: 482 Bytes
Versions: 1
Compression:
Stored size: 482 Bytes
Contents
module Emites class Client attr_reader :http def initialize(token) @http = Http.new(token) end def authenticated? http.get("") do |response| response.code == 200 end rescue RequestError => e raise e unless e.code == 401 false end def emitters Resources::Emitter.new(http) end def webhooks Resources::Webhook.new(http) end def nfse Resources::Nfse.new(http) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
emites-client-0.0.2 | lib/emites/client.rb |