Class: Wordsmith::Configuration
- Inherits:
-
Object
- Object
- Wordsmith::Configuration
- Defined in:
- lib/wordsmith/configuration.rb
Constant Summary collapse
- DEFAULT_URL =
'https://api.automatedinsights.com/v1'
- DEFAULT_USER_AGENT =
"RubySDK/#{Wordsmith::VERSION}"
Instance Attribute Summary collapse
-
#token ⇒ Object
Returns the value of attribute token.
-
#url ⇒ Object
Returns the value of attribute url.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 |
# File 'lib/wordsmith/configuration.rb', line 7 def initialize @url = DEFAULT_URL @user_agent = DEFAULT_USER_AGENT end |
Instance Attribute Details
#token ⇒ Object
Returns the value of attribute token.
3 4 5 |
# File 'lib/wordsmith/configuration.rb', line 3 def token @token end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/wordsmith/configuration.rb', line 3 def url @url end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
3 4 5 |
# File 'lib/wordsmith/configuration.rb', line 3 def user_agent @user_agent end |