Class: Plivo::Resources::ComplianceDocumentType

Inherits:
Base::Resource show all
Defined in:
lib/plivo/resources/regulatory_compliance.rb

Constant Summary

Constants included from Utils

Utils::TYPE_WHITELIST

Instance Attribute Summary

Attributes inherited from Base::Resource

#id

Instance Method Summary collapse

Methods included from Utils

GetSortedQueryParamString?, compute_signatureV3?, expected_type?, expected_value?, generate_url?, getMapFromQueryString?, is_one_among_string_url?, multi_valid_param?, raise_invalid_request, valid_account?, valid_date_format?, valid_mainaccount?, valid_multiple_destination_integers?, valid_multiple_destination_nos?, valid_param?, valid_range?, valid_signature?, valid_signatureV3?, valid_subaccount?, valid_url?

Constructor Details

#initialize(client, options = nil) ⇒ ComplianceDocumentType

Returns a new instance of ComplianceDocumentType.



150
151
152
153
154
# File 'lib/plivo/resources/regulatory_compliance.rb', line 150

def initialize(client, options = nil)
  @_name = 'ComplianceDocumentType'
  @_identifier_string = 'compliance_document_type'
  super
end

Instance Method Details

#to_sObject



156
157
158
159
160
161
162
163
164
165
166
# File 'lib/plivo/resources/regulatory_compliance.rb', line 156

def to_s
  {
    api_id: @api_id,
    document_type_id: @document_type_id,
    document_name: @document_name,
    description: @description,
    information: @information,
    proof_required: @proof_required,
    created_at: @created_at
  }.delete_if { |key, value| key==:api_id && value.nil? }.to_s
end