Sha256: b1cf4b36fe8a549e2b13cb68225c7a9cd3b53e1785b4a6447d01f1ac86974dba

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 KB

Contents

require "typhoeus"
require "multi_json"
require "wisper"

require "emites/version"
require "emites/configuration"
require "emites/http"
require "emites/client"

require "emites/entities/base"
require "emites/entities/account"
require "emites/entities/emitter"
require "emites/entities/taker_address"
require "emites/entities/taker_contact"
require "emites/entities/taker"
require "emites/entities/rps"
require "emites/entities/nfse_status"
require "emites/entities/nfse_status_transition"
require "emites/entities/nfse_values"
require "emites/entities/nfse"
require "emites/entities/webhook"
require "emites/entities/service"

require "emites/resources/base"
require "emites/resources/emitter"
require "emites/resources/webhook"
require "emites/resources/nfse"
require "emites/resources/taker"
require "emites/resources/service"

module Emites
  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.configure
    yield(configuration) if block_given?
  end

  def self.client(token)
    Client.new(token)
  end

  def self.subscribe(event, callback)
    Wisper.subscribe(callback, on: event, with: :call)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
emites-client-0.1.1 lib/emites.rb
emites-client-0.1.0 lib/emites.rb
emites-client-0.0.4 lib/emites.rb
emites-client-0.0.3 lib/emites.rb