Class: Webtrends::Service

Inherits:
Object
  • Object
show all
Defined in:
lib/webtrends/service.rb

Direct Known Subclasses

Event, Visitor

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Service

Returns a new instance of Service.



6
7
8
9
10
11
12
13
# File 'lib/webtrends/service.rb', line 6

def initialize(args = {})
  self.verbose = args.fetch(:verbose, Webtrends.configuration.verbose)
  self.format = args.fetch(:format, Webtrends.configuration.format)
  self.protocol = args.fetch(:protocol, Webtrends.configuration.protocol)
  self.domain = args.fetch(:protocol, Webtrends.configuration.domain)
  self.version = args.fetch(:version, Webtrends.configuration.version)
  self.customer_id = args.fetch(:customer_id, Webtrends.configuration.customer_id)
end

Instance Attribute Details

#customer_idObject

Returns the value of attribute customer_id.



4
5
6
# File 'lib/webtrends/service.rb', line 4

def customer_id
  @customer_id
end

#domainObject

Returns the value of attribute domain.



4
5
6
# File 'lib/webtrends/service.rb', line 4

def domain
  @domain
end

#formatObject

Returns the value of attribute format.



4
5
6
# File 'lib/webtrends/service.rb', line 4

def format
  @format
end

#protocolObject

Returns the value of attribute protocol.



4
5
6
# File 'lib/webtrends/service.rb', line 4

def protocol
  @protocol
end

#serviceObject

Returns the value of attribute service.



4
5
6
# File 'lib/webtrends/service.rb', line 4

def service
  @service
end

#verboseObject

Returns the value of attribute verbose.



4
5
6
# File 'lib/webtrends/service.rb', line 4

def verbose
  @verbose
end

#versionObject

Returns the value of attribute version.



4
5
6
# File 'lib/webtrends/service.rb', line 4

def version
  @version
end