Class: Plivo::Resources::ComplianceDocument

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) ⇒ ComplianceDocument

Returns a new instance of ComplianceDocument.



214
215
216
217
218
# File 'lib/plivo/resources/regulatory_compliance.rb', line 214

def initialize(client, options = nil)
  @_name = 'ComplianceDocument'
  @_identifier_string = 'compliance_document'
  super
end

Instance Method Details

#deleteObject



220
221
222
# File 'lib/plivo/resources/regulatory_compliance.rb', line 220

def delete
  perform_delete
end

#to_sObject



228
229
230
231
232
233
234
235
236
237
238
239
240
241
# File 'lib/plivo/resources/regulatory_compliance.rb', line 228

def to_s
  {
    api_id: @api_id,
    end_user_id: @end_user_id,
    document_type_id: @document_type_id,
    compliance_document_id: @compliance_document_id,
    document_id: @document_id,
    alias: @alias,
    meta_information: @meta_information,
    file: @file,
    file_name: @file_name,
    created_at: @created_at
  }.delete_if { |key, value| value.nil? }.to_s
end

#update(params) ⇒ Object



224
225
226
# File 'lib/plivo/resources/regulatory_compliance.rb', line 224

def update(params)
  perform_update(params, use_multipart_conn: true)
end