Class: NeverBounce::API::Response::SingleCheck

Inherits:
SuccessMessage show all
Defined in:
lib/never_bounce/api/response/single_check.rb

Instance Attribute Summary collapse

Attributes inherited from StatusMessage

#execution_time, #status

Attributes inherited from Container

#body_hash, #raw

Instance Method Summary collapse

Methods inherited from SuccessMessage

#success?

Methods inherited from Message

#error?, #ok?, #success?

Methods inherited from Container

oattr, scalar_oattr

Instance Attribute Details

#address_infoAddressInfo?

Returns:



25
# File 'lib/never_bounce/api/response/single_check.rb', line 25

oattr :address_info, :writer

#credits_infoCreditsInfo::Monthly, ...



31
# File 'lib/never_bounce/api/response/single_check.rb', line 31

oattr :credits_info, :writer

#flagsString

Returns:

  • (String)


12
# File 'lib/never_bounce/api/response/single_check.rb', line 12

oattr :flags, :scalar

#resultString

Returns:

  • (String)


16
# File 'lib/never_bounce/api/response/single_check.rb', line 16

oattr :result, :scalar

#suggested_correctionString

Returns:

  • (String)


20
# File 'lib/never_bounce/api/response/single_check.rb', line 20

oattr :suggested_correction, :scalar

Instance Method Details

#address_info?Boolean

true if #address_info is present.

Returns:

  • (Boolean)


42
43
44
# File 'lib/never_bounce/api/response/single_check.rb', line 42

def address_info?
  !address_info.nil?
end

#credits_info?Boolean

true if #credits_info is present.

Returns:

  • (Boolean)


64
65
66
# File 'lib/never_bounce/api/response/single_check.rb', line 64

def credits_info?
  !credits_info.nil?
end