Sha256: ee2e9abbb7e742951a102eaa42c79d5de8124f72f8c79c923f27d0a785ea3c9f

Contents?: true

Size: 415 Bytes

Versions: 2

Compression:

Stored size: 415 Bytes

Contents

module YandexMoney
  class << self
    attr_writer :config

    def config
      @config ||= Config.new
    end

    def configure
      yield(config)
    end

    def reset_config
      @config = Config.new
    end
  end

  class Config
    attr_accessor :money_url, :sp_money_url

    def initialize
      @money_url = "https://money.yandex.ru"
      @sp_money_url = "https://sp-money.yandex.ru"
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
yandex-money-client-1.0.6 lib/yandex_money/config.rb
yandex-money-sdk-1.0.5 lib/yandex_money/config.rb