Class: Safire::Configuration
- Inherits:
-
Object
- Object
- Safire::Configuration
- Defined in:
- lib/safire.rb
Instance Attribute Summary collapse
-
#log_http ⇒ Object
Returns the value of attribute log_http.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
49 50 51 52 |
# File 'lib/safire.rb', line 49 def initialize @user_agent = "Safire v#{Safire::VERSION}" @log_http = true end |
Instance Attribute Details
#log_http ⇒ Object
Returns the value of attribute log_http.
47 48 49 |
# File 'lib/safire.rb', line 47 def log_http @log_http end |
#log_level ⇒ Object
Returns the value of attribute log_level.
47 48 49 |
# File 'lib/safire.rb', line 47 def log_level @log_level end |
#logger ⇒ Object
Returns the value of attribute logger.
47 48 49 |
# File 'lib/safire.rb', line 47 def logger @logger end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
47 48 49 |
# File 'lib/safire.rb', line 47 def user_agent @user_agent end |