Class: Majestic::Api::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/majestic/api/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject

Returns the value of attribute api_key.



4
5
6
# File 'lib/majestic/api/configuration.rb', line 4

def api_key
  @api_key
end

#environmentObject

Returns the value of attribute environment.



4
5
6
# File 'lib/majestic/api/configuration.rb', line 4

def environment
  @environment
end

#user_agentObject

Returns the value of attribute user_agent.



4
5
6
# File 'lib/majestic/api/configuration.rb', line 4

def user_agent
  @user_agent
end

#verboseObject

Returns the value of attribute verbose.



4
5
6
# File 'lib/majestic/api/configuration.rb', line 4

def verbose
  @verbose
end