Class: Fresh::Auth::Configuration
- Inherits:
-
Object
- Object
- Fresh::Auth::Configuration
- Defined in:
- lib/fresh/auth/configuration.rb
Defined Under Namespace
Classes: Url
Instance Attribute Summary collapse
-
#nonce_salt ⇒ Object
Returns the value of attribute nonce_salt.
- #oauth_secret ⇒ Object
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
38 39 40 41 |
# File 'lib/fresh/auth/configuration.rb', line 38 def initialize @url = Url.new @nonce_salt = '' end |
Instance Attribute Details
#nonce_salt ⇒ Object
Returns the value of attribute nonce_salt.
7 8 9 |
# File 'lib/fresh/auth/configuration.rb', line 7 def nonce_salt @nonce_salt end |
#oauth_secret ⇒ Object
43 44 45 46 |
# File 'lib/fresh/auth/configuration.rb', line 43 def oauth_secret raise "Fresh::Auth.configuration.oauth_secret cannot be blank" if @oauth_secret.blank? @oauth_secret end |
#url ⇒ Object
Returns the value of attribute url.
7 8 9 |
# File 'lib/fresh/auth/configuration.rb', line 7 def url @url end |