Class: NeverBounce::API::Response::StatusMessage

Inherits:
Message show all
Defined in:
lib/never_bounce/api/response/status_message.rb

Overview

A message having status and execution_time.

Direct Known Subclasses

ErrorMessage, SuccessMessage

Instance Attribute Summary collapse

Attributes inherited from Container

#body_hash, #raw

Method Summary

Methods inherited from Message

#error?, #ok?, #success?

Methods inherited from Container

oattr, scalar_oattr

Instance Attribute Details

#execution_timeInteger

Request execution time in milliseconds.

Returns:

  • (Integer)


10
# File 'lib/never_bounce/api/response/status_message.rb', line 10

oattr :execution_time, :scalar, type: :integer

#statusString

Status mnemo as returned by the server.

Returns:

  • (String)


15
# File 'lib/never_bounce/api/response/status_message.rb', line 15

oattr :status, :scalar