Class: Userbin::Configuration
- Inherits:
-
Object
- Object
- Userbin::Configuration
- Defined in:
- lib/userbin/configuration.rb
Instance Attribute Summary collapse
-
#create_user ⇒ Object
Returns the value of attribute create_user.
-
#find_user ⇒ Object
Returns the value of attribute find_user.
-
#protected_path ⇒ Object
(also: #restricted_path)
Returns the value of attribute protected_path.
-
#root_path ⇒ Object
Returns the value of attribute root_path.
-
#skip_script_injection ⇒ Object
Returns the value of attribute skip_script_injection.
Instance Method Summary collapse
- #api_secret ⇒ Object
- #api_secret=(value) ⇒ Object
- #app_id ⇒ Object
- #app_id=(value) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 |
# File 'lib/userbin/configuration.rb', line 13 def initialize self.skip_script_injection = false end |
Instance Attribute Details
#create_user ⇒ Object
Returns the value of attribute create_user.
3 4 5 |
# File 'lib/userbin/configuration.rb', line 3 def create_user @create_user end |
#find_user ⇒ Object
Returns the value of attribute find_user.
4 5 6 |
# File 'lib/userbin/configuration.rb', line 4 def find_user @find_user end |
#protected_path ⇒ Object Also known as: restricted_path
Returns the value of attribute protected_path.
5 6 7 |
# File 'lib/userbin/configuration.rb', line 5 def protected_path @protected_path end |
#root_path ⇒ Object
Returns the value of attribute root_path.
6 7 8 |
# File 'lib/userbin/configuration.rb', line 6 def root_path @root_path end |
#skip_script_injection ⇒ Object
Returns the value of attribute skip_script_injection.
7 8 9 |
# File 'lib/userbin/configuration.rb', line 7 def skip_script_injection @skip_script_injection end |
Instance Method Details
#api_secret ⇒ Object
25 26 27 |
# File 'lib/userbin/configuration.rb', line 25 def api_secret ENV['USERBIN_API_SECRET'] || @_api_secret end |
#api_secret=(value) ⇒ Object
29 30 31 |
# File 'lib/userbin/configuration.rb', line 29 def api_secret=(value) @_api_secret = value end |
#app_id ⇒ Object
17 18 19 |
# File 'lib/userbin/configuration.rb', line 17 def app_id ENV['USERBIN_APP_ID'] || @_app_id end |
#app_id=(value) ⇒ Object
21 22 23 |
# File 'lib/userbin/configuration.rb', line 21 def app_id=(value) @_app_id = value end |