1
0
зеркало из https://github.com/glebtv/yookassa.git synced 2026-09-04 02:05:51 +03:00

Adding simplest configurator. No usage of creds right now

Этот коммит содержится в:
Ivan Shamatov
2021-10-29 00:02:23 +03:00
родитель b6bbdadd4c
Коммит cb7ec675e5
6 изменённых файлов: 62 добавлений и 0 удалений

Просмотреть файл

@@ -11,3 +11,14 @@ require "yookassa/optional"
require "yookassa/entity/payment"
require "yookassa/entity/refund"
require "yookassa/error"
require "yookassa/config"
module Yookassa
def self.configure
yield(config)
end
def self.config
@config ||= Config.new
end
end

7
lib/yookassa/config.rb Обычный файл
Просмотреть файл

@@ -0,0 +1,7 @@
# frozen_string_literal: true
module Yookassa
class Config
attr_accessor :shop_id, :api_key
end
end