Class: DIDWW::Resource::Identity

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

Constant Summary collapse

IDENTITY_TYPE_PERSONAL =
'Personal'
IDENTITY_TYPE_BUSINESS =
'Business'

Instance Method Summary collapse

Methods inherited from Base

#as_json_api

Instance Method Details

#business?Boolean

Returns:

  • (Boolean)


73
74
75
# File 'lib/didww/resource/identity.rb', line 73

def business?
  identity_type == IDENTITY_TYPE_BUSINESS
end

#personal?Boolean

Type: Boolean Description:

Returns:

  • (Boolean)


69
70
71
# File 'lib/didww/resource/identity.rb', line 69

def personal?
  identity_type == IDENTITY_TYPE_PERSONAL
end