Class: SoapyBing::Account
- Inherits:
-
Object
- Object
- SoapyBing::Account
- Defined in:
- lib/soapy_bing/account.rb
Instance Attribute Summary collapse
-
#account_id ⇒ Object
readonly
Returns the value of attribute account_id.
-
#customer_id ⇒ Object
readonly
Returns the value of attribute customer_id.
-
#developer_token ⇒ Object
readonly
Returns the value of attribute developer_token.
Instance Method Summary collapse
-
#initialize(account_options) ⇒ Account
constructor
A new instance of Account.
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_id ⇒ Object (readonly)
Returns the value of attribute account_id.
4 5 6 |
# File 'lib/soapy_bing/account.rb', line 4 def account_id @account_id end |
#customer_id ⇒ Object (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_token ⇒ Object (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 |