Class: DIDWW::Resource::DidGroup

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

Constant Summary collapse

FEATURE_VOICE_IN =

Possible values for did_group.features array

'voice_in'
FEATURE_VOICE_OUT =
'voice_out'
FEATURE_T38 =
't38'
FEATURE_IN_SMS =
'sms_in'
FEATURE_OUT_SMS =
'sms_out'
FEATURES =
{
  FEATURE_VOICE_IN => 'Voice IN',
  FEATURE_VOICE_OUT => 'Voice OUT',
  FEATURE_T38 => 'T.38 Fax',
  FEATURE_IN_SMS => 'SMS IN',
  FEATURE_OUT_SMS => 'SMS OUT'
}.freeze

Instance Method Summary collapse

Methods inherited from Base

#as_json_api

Instance Method Details

#features_humanObject

TODO Meta attributes

:available_dids_enabled Type: Boolean Description: Defines if particular DID from this DID group can be ordered via available_dids or did_reservations.

needs_registration Type: Boolean Description: Defines if end-user registration is required for this DID Group.

is_available Type: Boolean Description: Defines if numbers in this DID Group are currently in stock.



58
59
60
# File 'lib/didww/resource/did_group.rb', line 58

def features_human
  Array.wrap(features).map { |f| FEATURES[f] }
end