Class: Majestic::Api::Configuration
- Inherits:
-
Object
- Object
- Majestic::Api::Configuration
- Defined in:
- lib/majestic/api/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 11 |
# File 'lib/majestic/api/configuration.rb', line 6 def initialize self.environment = :sandbox self.api_key = nil self.verbose = false self.user_agent = "Ruby Majestic API Client v#{Majestic::Api::VERSION}" end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
4 5 6 |
# File 'lib/majestic/api/configuration.rb', line 4 def api_key @api_key end |
#environment ⇒ Object
Returns the value of attribute environment.
4 5 6 |
# File 'lib/majestic/api/configuration.rb', line 4 def environment @environment end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
4 5 6 |
# File 'lib/majestic/api/configuration.rb', line 4 def user_agent @user_agent end |
#verbose ⇒ Object
Returns the value of attribute verbose.
4 5 6 |
# File 'lib/majestic/api/configuration.rb', line 4 def verbose @verbose end |