Module: Waitlisted::Configuration::Base
- Included in:
- Waitlisted
- Defined in:
- lib/waitlisted/configuration/base.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
19 20 21 |
# File 'lib/waitlisted/configuration/base.rb', line 19 def self.extended(base) base.reset end |
Instance Method Details
#configuration ⇒ Object
15 16 17 |
# File 'lib/waitlisted/configuration/base.rb', line 15 def configuration @@configuration end |
#configure {|configuration| ... } ⇒ Object
11 12 13 |
# File 'lib/waitlisted/configuration/base.rb', line 11 def configure(&block) yield configuration end |
#reset ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/waitlisted/configuration/base.rb', line 4 def reset if ENV['WAITLISTED_URL'] @@configuration = OpenStruct.new(url: "#{ENV['WAITLISTED_URL']}") else @@configuration = OpenStruct.new end end |