Sha256: c74c936f2e1bd2475c73f5411cc375edb662652340d2f5b7fda5a880216c7408

Contents?: true

Size: 302 Bytes

Versions: 4

Compression:

Stored size: 302 Bytes

Contents

# frozen_string_literal: true

module Fawry
  class << self
    attr_accessor :configuration

    def configure
      self.configuration ||= Configuration.new

      yield(configuration)
    end
  end

  class Configuration
    attr_accessor :sandbox, :fawry_secure_key, :fawry_merchant_code
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fawry-1.4.1 lib/fawry/config.rb
fawry-1.4.0 lib/fawry/config.rb
fawry-1.3.1 lib/fawry/config.rb
fawry-1.3.0 lib/fawry/config.rb