Class: Smplkit::Audit::ForwarderDelivery
- Inherits:
-
Struct
- Object
- Struct
- Smplkit::Audit::ForwarderDelivery
- Defined in:
- lib/smplkit/audit/forwarders.rb
Instance Attribute Summary collapse
-
#attempt_number ⇒ Object
Returns the value of attribute attempt_number.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#error ⇒ Object
Returns the value of attribute error.
-
#event_id ⇒ Object
Returns the value of attribute event_id.
-
#forwarder_id ⇒ Object
Returns the value of attribute forwarder_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#latency_ms ⇒ Object
Returns the value of attribute latency_ms.
-
#request ⇒ Object
Returns the value of attribute request.
-
#response_body ⇒ Object
Returns the value of attribute response_body.
-
#response_status ⇒ Object
Returns the value of attribute response_status.
-
#status ⇒ Object
Returns the value of attribute status.
Class Method Summary collapse
Instance Attribute Details
#attempt_number ⇒ Object
Returns the value of attribute attempt_number
214 215 216 |
# File 'lib/smplkit/audit/forwarders.rb', line 214 def attempt_number @attempt_number end |
#created_at ⇒ Object
Returns the value of attribute created_at
214 215 216 |
# File 'lib/smplkit/audit/forwarders.rb', line 214 def created_at @created_at end |
#error ⇒ Object
Returns the value of attribute error
214 215 216 |
# File 'lib/smplkit/audit/forwarders.rb', line 214 def error @error end |
#event_id ⇒ Object
Returns the value of attribute event_id
214 215 216 |
# File 'lib/smplkit/audit/forwarders.rb', line 214 def event_id @event_id end |
#forwarder_id ⇒ Object
Returns the value of attribute forwarder_id
214 215 216 |
# File 'lib/smplkit/audit/forwarders.rb', line 214 def forwarder_id @forwarder_id end |
#id ⇒ Object
Returns the value of attribute id
214 215 216 |
# File 'lib/smplkit/audit/forwarders.rb', line 214 def id @id end |
#latency_ms ⇒ Object
Returns the value of attribute latency_ms
214 215 216 |
# File 'lib/smplkit/audit/forwarders.rb', line 214 def latency_ms @latency_ms end |
#request ⇒ Object
Returns the value of attribute request
214 215 216 |
# File 'lib/smplkit/audit/forwarders.rb', line 214 def request @request end |
#response_body ⇒ Object
Returns the value of attribute response_body
214 215 216 |
# File 'lib/smplkit/audit/forwarders.rb', line 214 def response_body @response_body end |
#response_status ⇒ Object
Returns the value of attribute response_status
214 215 216 |
# File 'lib/smplkit/audit/forwarders.rb', line 214 def response_status @response_status end |
#status ⇒ Object
Returns the value of attribute status
214 215 216 |
# File 'lib/smplkit/audit/forwarders.rb', line 214 def status @status end |
Class Method Details
.from_resource(resource) ⇒ Object
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
# File 'lib/smplkit/audit/forwarders.rb', line 219 def self.from_resource(resource) a = resource.attributes new( id: resource.id, forwarder_id: a.forwarder_id, event_id: a.event_id, attempt_number: a.attempt_number, status: a.status, request: a.request, response_status: a.response_status, response_body: a.response_body, latency_ms: a.latency_ms, error: a.error, created_at: a.created_at ) end |