Class: Configuration
- Inherits:
-
Object
- Object
- Configuration
- Defined in:
- lib/configuration.rb
Instance Attribute Summary collapse
-
#allow_when ⇒ Object
Returns the value of attribute allow_when.
-
#allowed_ips ⇒ Object
Returns the value of attribute allowed_ips.
-
#callback_url ⇒ Object
Returns the value of attribute callback_url.
-
#captcha ⇒ Object
Returns the value of attribute captcha.
-
#database_url ⇒ Object
Returns the value of attribute database_url.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#min_amount ⇒ Object
Returns the value of attribute min_amount.
-
#mitm_server ⇒ Object
Returns the value of attribute mitm_server.
-
#model ⇒ Object
Returns the value of attribute model.
-
#password ⇒ Object
Returns the value of attribute password.
-
#sandbox ⇒ Object
Returns the value of attribute sandbox.
-
#secrets_path ⇒ Object
Returns the value of attribute secrets_path.
-
#username ⇒ Object
Returns the value of attribute username.
-
#webhook ⇒ Object
Returns the value of attribute webhook.
-
#webhook_method ⇒ Object
Returns the value of attribute webhook_method.
-
#webpanel_path ⇒ Object
Returns the value of attribute webpanel_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/configuration.rb', line 18 def initialize @callback_url = nil @debug = false @sandbox = false @webhook = nil @webhook_method = "POST" @mitm_server = nil @secrets_path = nil @min_amount = 10000 @webpanel_path = nil @username = nil @password = nil @allowed_ips = ['*'] @allow_when = -> { true } @captcha = false @model = nil @database_url = nil end |
Instance Attribute Details
#allow_when ⇒ Object
Returns the value of attribute allow_when.
3 4 5 |
# File 'lib/configuration.rb', line 3 def allow_when @allow_when end |
#allowed_ips ⇒ Object
Returns the value of attribute allowed_ips.
3 4 5 |
# File 'lib/configuration.rb', line 3 def allowed_ips @allowed_ips end |
#callback_url ⇒ Object
Returns the value of attribute callback_url.
3 4 5 |
# File 'lib/configuration.rb', line 3 def callback_url @callback_url end |
#captcha ⇒ Object
Returns the value of attribute captcha.
3 4 5 |
# File 'lib/configuration.rb', line 3 def captcha @captcha end |
#database_url ⇒ Object
Returns the value of attribute database_url.
3 4 5 |
# File 'lib/configuration.rb', line 3 def database_url @database_url end |
#debug ⇒ Object
Returns the value of attribute debug.
3 4 5 |
# File 'lib/configuration.rb', line 3 def debug @debug end |
#min_amount ⇒ Object
Returns the value of attribute min_amount.
3 4 5 |
# File 'lib/configuration.rb', line 3 def min_amount @min_amount end |
#mitm_server ⇒ Object
Returns the value of attribute mitm_server.
3 4 5 |
# File 'lib/configuration.rb', line 3 def mitm_server @mitm_server end |
#model ⇒ Object
Returns the value of attribute model.
3 4 5 |
# File 'lib/configuration.rb', line 3 def model @model end |
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/configuration.rb', line 3 def password @password end |
#sandbox ⇒ Object
Returns the value of attribute sandbox.
3 4 5 |
# File 'lib/configuration.rb', line 3 def sandbox @sandbox end |
#secrets_path ⇒ Object
Returns the value of attribute secrets_path.
3 4 5 |
# File 'lib/configuration.rb', line 3 def secrets_path @secrets_path end |
#username ⇒ Object
Returns the value of attribute username.
3 4 5 |
# File 'lib/configuration.rb', line 3 def username @username end |
#webhook ⇒ Object
Returns the value of attribute webhook.
3 4 5 |
# File 'lib/configuration.rb', line 3 def webhook @webhook end |
#webhook_method ⇒ Object
Returns the value of attribute webhook_method.
3 4 5 |
# File 'lib/configuration.rb', line 3 def webhook_method @webhook_method end |
#webpanel_path ⇒ Object
Returns the value of attribute webpanel_path.
3 4 5 |
# File 'lib/configuration.rb', line 3 def webpanel_path @webpanel_path end |