Class: RigorLogger::Base
- Inherits:
-
Object
- Object
- RigorLogger::Base
- Defined in:
- lib/rigor_logger/base.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(name, options = {}) ⇒ Base
Returns a new instance of Base.
10 11 12 13 14 15 16 17 |
# File 'lib/rigor_logger/base.rb', line 10 def initialize name, ={} raise(ConfigurationError, 'Please provide an API key!') unless RigorLogger.config[:api_key] @host = [:host] || RigorLogger.config[:host] @environment = [:environment] || RigorLogger.config[:environment] @app = [:app] || RigorLogger.config[:app] @name = name @options = () end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
8 9 10 |
# File 'lib/rigor_logger/base.rb', line 8 def app @app end |
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
8 9 10 |
# File 'lib/rigor_logger/base.rb', line 8 def environment @environment end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
8 9 10 |
# File 'lib/rigor_logger/base.rb', line 8 def host @host end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/rigor_logger/base.rb', line 8 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/rigor_logger/base.rb', line 8 def @options end |