Class: EndPointBlank::LogEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/end_point_blank/log_entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = message
  @env = env
  @stacktrace = stacktrace
  @app = app
  @status = status
  @headers = headers
  @body = body
  @sent_at = sent_at
end

Instance Attribute Details

#appObject

Returns the value of attribute app.



3
4
5
# File 'lib/end_point_blank/log_entry.rb', line 3

def app
  @app
end

#bodyObject

Returns the value of attribute body.



3
4
5
# File 'lib/end_point_blank/log_entry.rb', line 3

def body
  @body
end

#envObject

Returns the value of attribute env.



3
4
5
# File 'lib/end_point_blank/log_entry.rb', line 3

def env
  @env
end

#headersObject

Returns the value of attribute headers.



3
4
5
# File 'lib/end_point_blank/log_entry.rb', line 3

def headers
  @headers
end

#messageObject

Returns the value of attribute message.



3
4
5
# File 'lib/end_point_blank/log_entry.rb', line 3

def message
  @message
end

#sent_atObject

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

#stacktraceObject

Returns the value of attribute stacktrace.



3
4
5
# File 'lib/end_point_blank/log_entry.rb', line 3

def stacktrace
  @stacktrace
end

#statusObject

Returns the value of attribute status.



3
4
5
# File 'lib/end_point_blank/log_entry.rb', line 3

def status
  @status
end