class Zuora::Client
Constants
- INSTANCE_VARIABLE_LOG_BLACKLIST
Attributes
session_token[RW]
Public Class Methods
new(username, password, sandbox = true)
click to toggle source
# File lib/zuora/client.rb, line 13 def initialize(username, password, sandbox = true) @username = username @password = password @sandbox = sandbox end
Public Instance Methods
call!(*args)
click to toggle source
Delegate SOAP methods to SOAP client
# File lib/zuora/client.rb, line 20 def call!(*args) soap_client.call!(*args) end
to_s()
click to toggle source
Like Object.to_s, except excludes BLACKLISTed instance vars
# File lib/zuora/client.rb, line 32 def to_s public_vars = instance_variables.reject do |var| INSTANCE_VARIABLE_LOG_BLACKLIST.include? var end public_vars.map! do |var| "#{var}=\"#{instance_variable_get(var)}\"" end public_vars = public_vars.join(' ') "<##{self.class}:#{object_id.to_s(8)} #{public_vars}>" end
Also aliased as: inspect
Private Instance Methods
rest_client()
click to toggle source
# File lib/zuora/client.rb, line 55 def rest_client @rest_client ||= Zuora::Rest::Client.new(@username, @password, @sandbox) end
soap_client()
click to toggle source
Lazily connects SOAP / RESTS clients when needed; memoizes results
# File lib/zuora/client.rb, line 51 def soap_client @soap_client ||= Zuora::Soap::Client.new(@username, @password, @sandbox) end