Class: Goldeneye::Drivers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/goldeneye/drivers/base.rb

Direct Known Subclasses

Savon

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Base) initialize(service, options = {})



13
14
15
16
17
# File 'lib/goldeneye/drivers/base.rb', line 13

def initialize(service, options = {})
  @url      = "#{(options[:url]  || Goldeneye.url)}/#{service}?wsdl"
  @user     = options[:user]     || Goldeneye.user
  @password = options[:password] || Goldeneye.password
end

Instance Attribute Details

- (Object) password

Returns the value of attribute password



11
12
13
# File 'lib/goldeneye/drivers/base.rb', line 11

def password
  @password
end

- (Object) url

Returns the value of attribute url



11
12
13
# File 'lib/goldeneye/drivers/base.rb', line 11

def url
  @url
end

- (Object) user

Returns the value of attribute user



11
12
13
# File 'lib/goldeneye/drivers/base.rb', line 11

def user
  @user
end

Class Method Details

+ (Object) log=(log)

Defines if this class will log its interactions

Raises:

  • (NotImplementedError)


6
7
8
# File 'lib/goldeneye/drivers/base.rb', line 6

def log=(log)
  raise NotImplementedError
end

Instance Method Details

- (Object) call(method, args = {})

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/goldeneye/drivers/base.rb', line 19

def call(method, args = {})
  raise NotImplementedError
end