Module: ETAPI::Configuration

Included in:
ETAPI
Defined in:
lib/etapi/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#log(message) ⇒ Object

Returns the value of attribute log.



16
17
18
# File 'lib/etapi/configuration.rb', line 16

def log
  @log
end

#log_levelObject



39
40
41
# File 'lib/etapi/configuration.rb', line 39

def log_level
  @log_level ||= :debug
end

#loggerObject



34
35
36
# File 'lib/etapi/configuration.rb', line 34

def logger
  @logger ||= ::Logger.new(STDOUT)
end

#passwordObject

Returns the value of attribute password.



16
17
18
# File 'lib/etapi/configuration.rb', line 16

def password
  @password
end

#raise_errorsObject

Returns the value of attribute raise_errors.



16
17
18
# File 'lib/etapi/configuration.rb', line 16

def raise_errors
  @raise_errors
end

#use_s4Object

Returns the value of attribute use_s4.



16
17
18
# File 'lib/etapi/configuration.rb', line 16

def use_s4
  @use_s4
end

#usernameObject

Returns the value of attribute username.



16
17
18
# File 'lib/etapi/configuration.rb', line 16

def username
  @username
end

Instance Method Details

#log?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/etapi/configuration.rb', line 25

def log?
 @log != false
end

#raise_errors?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/etapi/configuration.rb', line 44

def raise_errors?
  @raise_errors != false
end