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.
-
#auto_include_tags ⇒ Object
Returns the value of attribute auto_include_tags.
-
#current_user ⇒ Object
Returns the value of attribute current_user.
-
#restricted_path ⇒ Object
Returns the value of attribute restricted_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 |
# File 'lib/userbin/configuration.rb', line 9 def initialize self.app_id = ENV["USERBIN_APP_ID"] self.api_secret = ENV["USERBIN_API_SECRET"] self. = true 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 |
#auto_include_tags ⇒ Object
Returns the value of attribute auto_include_tags.
6 7 8 |
# File 'lib/userbin/configuration.rb', line 6 def @auto_include_tags end |
#current_user ⇒ Object
Returns the value of attribute current_user.
5 6 7 |
# File 'lib/userbin/configuration.rb', line 5 def current_user @current_user end |
#restricted_path ⇒ Object
Returns the value of attribute restricted_path.
7 8 9 |
# File 'lib/userbin/configuration.rb', line 7 def restricted_path @restricted_path end |