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'
IDENTITY_TYPE_ANY =
'any'

Instance Method Summary collapse

Methods inherited from Base

#as_json_api

Instance Method Details

#business?Boolean

Returns:

  • (Boolean)


79
80
81
# File 'lib/didww/resource/identity.rb', line 79

def business?
  identity_type == IDENTITY_TYPE_BUSINESS
end

#personal?Boolean

Type: String Description:

Returns:

  • (Boolean)


75
76
77
# File 'lib/didww/resource/identity.rb', line 75

def personal?
  identity_type == IDENTITY_TYPE_PERSONAL
end