Sha256: e04525c845824f44cec7a0278605e678539805918e7fbf673b4119e1c058f66e

Contents?: true

Size: 224 Bytes

Versions: 2

Compression:

Stored size: 224 Bytes

Contents

module NovaPoshta
  class Configuration
    attr_writer :api_key

    def initialize
      @api_key = ENV['NOVA_POSHTA_API_KEY']
    end

    def api_key
      @api_key || (raise UndefinedApiKeyError.new)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nova_poshta-0.3.0 lib/nova_poshta/configuration.rb
nova_poshta-0.2.0 lib/nova_poshta/configuration.rb