Class: Userbin::Configuration
- Inherits:
-
Object
- Object
- Userbin::Configuration
- Defined in:
- lib/userbin/configuration.rb
Instance Attribute Summary collapse
-
#api_secret ⇒ Object
Returns the value of attribute api_secret.
-
#app_id ⇒ Object
Returns the value of attribute app_id.
-
#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
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
15 16 17 18 19 20 |
# File 'lib/userbin/configuration.rb', line 15 def initialize self.app_id = ENV["USERBIN_APP_ID"] self.api_secret = ENV["USERBIN_API_SECRET"] self.skip_script_injection = false end |
Instance Attribute Details
#api_secret ⇒ Object
Returns the value of attribute api_secret.
4 5 6 |
# File 'lib/userbin/configuration.rb', line 4 def api_secret @api_secret end |
#app_id ⇒ Object
Returns the value of attribute app_id.
3 4 5 |
# File 'lib/userbin/configuration.rb', line 3 def app_id @app_id end |
#create_user ⇒ Object
Returns the value of attribute create_user.
6 7 8 |
# File 'lib/userbin/configuration.rb', line 6 def create_user @create_user end |
#find_user ⇒ Object
Returns the value of attribute find_user.
7 8 9 |
# File 'lib/userbin/configuration.rb', line 7 def find_user @find_user end |
#protected_path ⇒ Object Also known as: restricted_path
Returns the value of attribute protected_path.
8 9 10 |
# File 'lib/userbin/configuration.rb', line 8 def protected_path @protected_path end |
#root_path ⇒ Object
Returns the value of attribute root_path.
9 10 11 |
# File 'lib/userbin/configuration.rb', line 9 def root_path @root_path end |
#skip_script_injection ⇒ Object
Returns the value of attribute skip_script_injection.
5 6 7 |
# File 'lib/userbin/configuration.rb', line 5 def skip_script_injection @skip_script_injection end |