Class: Payme::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/payme/config.rb

Constant Summary collapse

@@config_path =
nil
@@config_env =
nil

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.config_pathObject



19
20
21
# File 'lib/payme/config.rb', line 19

def self.config_path
  @@config_path
end

.defaultObject



7
8
9
# File 'lib/payme/config.rb', line 7

def self.default
  self.new.default
end

.set_config(file_path, env) ⇒ Object



15
16
17
# File 'lib/payme/config.rb', line 15

def self.set_config(file_path, env)
  @@config_path, @@config_env = file_path, env
end

Instance Method Details

#defaultObject



11
12
13
# File 'lib/payme/config.rb', line 11

def default
  yaml_default || hard_default
end