Class: DIDWW::Resource::AddressVerification

Inherits:
Base
  • Object
show all
Defined in:
lib/didww/resource/address_verification.rb

Constant Summary collapse

STATUS_PENDING =
'Pending'
STATUS_APPROVED =
'Approved'
STATUS_REJECTED =
'Rejected'
STATUSES =
[
  STATUS_PENDING,
  STATUS_APPROVED,
  STATUS_REJECTED
].freeze

Instance Method Summary collapse

Methods inherited from Base

#as_json_api

Instance Method Details

#approved?Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/didww/resource/address_verification.rb', line 46

def approved?
  status == STATUS_APPROVED
end

#pending?Boolean

Type: String Description: GET or POST

Returns:

  • (Boolean)


42
43
44
# File 'lib/didww/resource/address_verification.rb', line 42

def pending?
  status == STATUS_PENDING
end

#rejected?Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/didww/resource/address_verification.rb', line 50

def rejected?
  status == STATUS_REJECTED
end