Sha256: 1ae2c277894ac2ebd51f7f63cb78310cbbc015980dcf739158ba272b07e202e6

Contents?: true

Size: 427 Bytes

Versions: 18

Compression:

Stored size: 427 Bytes

Contents

module Killbill
  module Plugin
    module ActiveMerchant
      class Properties
        def initialize(file)
          @config_file = Pathname.new(file).expand_path
        end

        def parse!
          raise "#{@config_file} is not a valid file" unless @config_file.file?
          @config = YAML.load_file(@config_file.to_s)
        end

        def [](key)
          @config[key]
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
killbill-3.2.4 lib/killbill/helpers/active_merchant/properties.rb
killbill-3.2.3 lib/killbill/helpers/active_merchant/properties.rb
killbill-3.2.2 lib/killbill/helpers/active_merchant/properties.rb
killbill-3.2.1 lib/killbill/helpers/active_merchant/properties.rb
killbill-3.2.0 lib/killbill/helpers/active_merchant/properties.rb
killbill-3.1.12 lib/killbill/helpers/active_merchant/properties.rb
killbill-3.1.11 lib/killbill/helpers/active_merchant/properties.rb
killbill-3.1.10 lib/killbill/helpers/active_merchant/properties.rb
killbill-3.1.9 lib/killbill/helpers/active_merchant/properties.rb
killbill-3.1.8 lib/killbill/helpers/active_merchant/properties.rb
killbill-3.1.7 lib/killbill/helpers/active_merchant/properties.rb
killbill-3.1.6 lib/killbill/helpers/active_merchant/properties.rb
killbill-3.1.5 lib/killbill/helpers/active_merchant/properties.rb
killbill-3.1.4 lib/killbill/helpers/active_merchant/properties.rb
killbill-3.1.3 lib/killbill/helpers/active_merchant/properties.rb
killbill-3.1.2 lib/killbill/helpers/active_merchant/properties.rb
killbill-3.1.1 lib/killbill/helpers/active_merchant/properties.rb
killbill-3.1.0 lib/killbill/helpers/active_merchant/properties.rb