Class: Sem4r::Base

Inherits:
Object
  • Object
show all
Includes:
Sem4rSoap::SoapAttributes
Defined in:
lib/sem4r/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#adwordsObject (readonly)

Returns the value of attribute adwords.



29
30
31
# File 'lib/sem4r/base.rb', line 29

def adwords
  @adwords
end

#credentialsObject (readonly)

Returns the value of attribute credentials.



30
31
32
# File 'lib/sem4r/base.rb', line 30

def credentials
  @credentials
end

#serviceObject (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