Class: EndPointBlank::LogEntry
- Inherits:
-
Object
- Object
- EndPointBlank::LogEntry
- Defined in:
- lib/end_point_blank/log_entry.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
-
#body ⇒ Object
Returns the value of attribute body.
-
#env ⇒ Object
Returns the value of attribute env.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#message ⇒ Object
Returns the value of attribute message.
-
#sent_at ⇒ Object
Returns the value of attribute sent_at.
-
#stacktrace ⇒ Object
Returns the value of attribute stacktrace.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message:, env:, stacktrace:, app:, status:, headers:, body:, sent_at: Time.now) ⇒ LogEntry
constructor
A new instance of LogEntry.
Constructor Details
#initialize(message:, env:, stacktrace:, app:, status:, headers:, body:, sent_at: Time.now) ⇒ LogEntry
Returns a new instance of LogEntry.
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/end_point_blank/log_entry.rb', line 5 def initialize(message:, env: , stacktrace:, app:, status:, headers:, body:, sent_at: Time.now) @message = @env = env @stacktrace = stacktrace @app = app @status = status @headers = headers @body = body @sent_at = sent_at end |
Instance Attribute Details
#app ⇒ Object
Returns the value of attribute app.
3 4 5 |
# File 'lib/end_point_blank/log_entry.rb', line 3 def app @app end |
#body ⇒ Object
Returns the value of attribute body.
3 4 5 |
# File 'lib/end_point_blank/log_entry.rb', line 3 def body @body end |
#env ⇒ Object
Returns the value of attribute env.
3 4 5 |
# File 'lib/end_point_blank/log_entry.rb', line 3 def env @env end |
#headers ⇒ Object
Returns the value of attribute headers.
3 4 5 |
# File 'lib/end_point_blank/log_entry.rb', line 3 def headers @headers end |
#message ⇒ Object
Returns the value of attribute message.
3 4 5 |
# File 'lib/end_point_blank/log_entry.rb', line 3 def @message end |
#sent_at ⇒ Object
Returns the value of attribute sent_at.
3 4 5 |
# File 'lib/end_point_blank/log_entry.rb', line 3 def sent_at @sent_at end |
#stacktrace ⇒ Object
Returns the value of attribute stacktrace.
3 4 5 |
# File 'lib/end_point_blank/log_entry.rb', line 3 def stacktrace @stacktrace end |
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/end_point_blank/log_entry.rb', line 3 def status @status end |