Sha256: 8d52b1f23247dc2a668b5e728a49b86fe976973cffbc3589571405119b2657f1

Contents?: true

Size: 482 Bytes

Versions: 27

Compression:

Stored size: 482 Bytes

Contents

module Einvoice
  class Provider
    attr_accessor *Configuration::VALID_OPTIONS_KEYS
    attr_accessor :provider

    def initialize(options={})
      options = Einvoice.options.merge(options)
      Configuration::VALID_OPTIONS_KEYS.each do |key|
        send("#{key}=", options[key])
      end
    end

    def config
      conf = {}
      Configuration::VALID_OPTIONS_KEYS.each do |key|
        conf[key] = send key
      end
      conf
    end

    include Connection
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
einvoice-1.2.22 lib/einvoice/provider.rb
einvoice-1.2.21 lib/einvoice/provider.rb
einvoice-1.2.20 lib/einvoice/provider.rb
einvoice-1.2.19 lib/einvoice/provider.rb
einvoice-1.2.18 lib/einvoice/provider.rb
einvoice-1.2.17 lib/einvoice/provider.rb
einvoice-1.2.16 lib/einvoice/provider.rb
einvoice-1.2.15 lib/einvoice/provider.rb
einvoice-1.2.14 lib/einvoice/provider.rb
einvoice-1.2.13 lib/einvoice/provider.rb
einvoice-1.2.12 lib/einvoice/provider.rb
einvoice-1.2.11 lib/einvoice/provider.rb
einvoice-1.2.10 lib/einvoice/provider.rb
einvoice-1.2.9 lib/einvoice/provider.rb
einvoice-1.2.8 lib/einvoice/provider.rb
einvoice-1.2.7 lib/einvoice/provider.rb
einvoice-1.2.6 lib/einvoice/provider.rb
einvoice-1.2.5 lib/einvoice/provider.rb
einvoice-1.2.4 lib/einvoice/provider.rb
einvoice-1.2.3 lib/einvoice/provider.rb