Module: ETAPI::Configuration
- Included in:
- ETAPI
- Defined in:
- lib/etapi/configuration.rb
Instance Attribute Summary collapse
-
#log(message) ⇒ Object
Returns the value of attribute log.
- #log_level ⇒ Object
- #logger ⇒ Object
-
#password ⇒ Object
Returns the value of attribute password.
-
#raise_errors ⇒ Object
Returns the value of attribute raise_errors.
-
#use_s4 ⇒ Object
Returns the value of attribute use_s4.
-
#username ⇒ Object
Returns the value of attribute username.
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_level ⇒ Object
39 40 41 |
# File 'lib/etapi/configuration.rb', line 39 def log_level @log_level ||= :debug end |
#logger ⇒ Object
34 35 36 |
# File 'lib/etapi/configuration.rb', line 34 def logger @logger ||= ::Logger.new(STDOUT) end |
#password ⇒ Object
Returns the value of attribute password.
16 17 18 |
# File 'lib/etapi/configuration.rb', line 16 def password @password end |
#raise_errors ⇒ Object
Returns the value of attribute raise_errors.
16 17 18 |
# File 'lib/etapi/configuration.rb', line 16 def raise_errors @raise_errors end |
#use_s4 ⇒ Object
Returns the value of attribute use_s4.
16 17 18 |
# File 'lib/etapi/configuration.rb', line 16 def use_s4 @use_s4 end |
#username ⇒ Object
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
25 26 27 |
# File 'lib/etapi/configuration.rb', line 25 def log? @log != false end |
#raise_errors? ⇒ Boolean
44 45 46 |
# File 'lib/etapi/configuration.rb', line 44 def raise_errors? @raise_errors != false end |