Class: AdwordsApi::Errors::InvalidUserAgentError

Inherits:
AdsCommon::Errors::Error
  • Object
show all
Defined in:
lib/adwords_api/errors.rb

Overview

Error for using an invalid user agent string.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, user_agent) ⇒ InvalidUserAgentError

Returns a new instance of InvalidUserAgentError.



104
105
106
107
# File 'lib/adwords_api/errors.rb', line 104

def initialize(message, user_agent)
  super(message)
  @user_agent = user_agent
end

Instance Attribute Details

#user_agentObject (readonly)

Returns the value of attribute user_agent.



102
103
104
# File 'lib/adwords_api/errors.rb', line 102

def user_agent
  @user_agent
end