Sha256: 97b5ebfd67523b9e47a8b588fd4883c1a66600691964dbea59321b6d75bf8122

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 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/resources/base"
require "emites/resources/emitter"
require "emites/resources/webhook"
require "emites/resources/nfse"

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

1 entries across 1 versions & 1 rubygems

Version Path
emites-client-0.0.2 lib/emites.rb