Class: SoapyBing::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/soapy_bing/account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account_options) ⇒ Account

Returns a new instance of Account.



6
7
8
9
10
11
# File 'lib/soapy_bing/account.rb', line 6

def initialize()
  param_guard = ParamGuard.new(, env_namespace: 'BING_ADS')
  @developer_token = param_guard.require!(:developer_token)
  @account_id = param_guard.require!(:account_id)
  @customer_id = param_guard.require!(:customer_id)
end

Instance Attribute Details

#account_idObject (readonly)

Returns the value of attribute account_id.



4
5
6
# File 'lib/soapy_bing/account.rb', line 4

def 
  @account_id
end

#customer_idObject (readonly)

Returns the value of attribute customer_id.



4
5
6
# File 'lib/soapy_bing/account.rb', line 4

def customer_id
  @customer_id
end

#developer_tokenObject (readonly)

Returns the value of attribute developer_token.



4
5
6
# File 'lib/soapy_bing/account.rb', line 4

def developer_token
  @developer_token
end