Class: Sem4r::Base
- Inherits:
-
Object
- Object
- Sem4r::Base
- Includes:
- Sem4rSoap::SoapAttributes
- Defined in:
- lib/sem4r/base.rb
Direct Known Subclasses
Account, AdGroup, AdGroupAd, AdParam, Campaign, Criterion, Report, ReportDefinition, ReportJob
Instance Attribute Summary collapse
-
#adwords ⇒ Object
readonly
Returns the value of attribute adwords.
-
#credentials ⇒ Object
readonly
Returns the value of attribute credentials.
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Instance Method Summary collapse
- #add_counters(counters) ⇒ Object
-
#initialize(adwords, credentials) ⇒ Base
constructor
A new instance of Base.
Methods included from Sem4rSoap::SoapAttributes
#_from_element, #_to_s, #_to_xml, included
Constructor Details
#initialize(adwords, credentials) ⇒ Base
Returns a new instance of Base.
33 34 35 36 37 |
# File 'lib/sem4r/base.rb', line 33 def initialize(adwords, credentials) @adwords = adwords @credentials = credentials @service = adwords.service end |
Instance Attribute Details
#adwords ⇒ Object (readonly)
Returns the value of attribute adwords.
29 30 31 |
# File 'lib/sem4r/base.rb', line 29 def adwords @adwords end |
#credentials ⇒ Object (readonly)
Returns the value of attribute credentials.
30 31 32 |
# File 'lib/sem4r/base.rb', line 30 def credentials @credentials end |
#service ⇒ Object (readonly)
Returns the value of attribute service.
31 32 33 |
# File 'lib/sem4r/base.rb', line 31 def service @service end |
Instance Method Details
#add_counters(counters) ⇒ Object
39 40 41 |
# File 'lib/sem4r/base.rb', line 39 def add_counters( counters ) @adwords.add_counters( @credentials, counters ) end |