Sha256: 4a717161d17eee3dc0b6dc19a7e6000bfc065439d1e9c3a96b19eb6dbfef51a0

Contents?: true

Size: 787 Bytes

Versions: 7

Compression:

Stored size: 787 Bytes

Contents

# frozen_string_literal: true

require 'billomat/version'
require 'billomat/configuration'
require 'billomat/models'
require 'billomat/actions'
require 'billomat/search'
require 'billomat/gateway'

##
# An wrapper for the
# <a href="https://billomat.com">Billomat</a>
# API
module Billomat
  class << self
    attr_writer :configuration
  end

  # @return [Billomat::Configuration] The global billomat configuration
  def self.configuration
    @configuration ||= Billomat::Configuration.new
  end

  # Class method to set and change the global configuration
  #
  # @example
  #   Billomat.configure do |config|
  #     config.subdomain = 'your-business-name'
  #     config.api_key = 'a3b148a61cb642389b4f9953f6233f20'
  #   end
  def self.configure
    yield(configuration)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
billomat-0.2.0 lib/billomat.rb
billomat-0.1.6 lib/billomat.rb
billomat-0.1.5 lib/billomat.rb
billomat-0.1.4 lib/billomat.rb
billomat-0.1.3 lib/billomat.rb
billomat-0.1.2 lib/billomat.rb
billomat-0.1.1 lib/billomat.rb