зеркало из
https://github.com/glebtv/yookassa.git
synced 2026-09-04 02:05:51 +03:00
Adding simplest configurator. No usage of creds right now
Этот коммит содержится в:
@@ -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
Обычный файл
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
|
||||
Ссылка в новой задаче
Block a user