Class: AsposeEmailCloud::DisposableEmailApi

Inherits:
Object
  • Object
show all
Defined in:
lib/aspose-email-cloud/api/disposable_email_api.rb

Overview

DisposableEmailApi operations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_invoker) ⇒ DisposableEmailApi

Initializes a new instance of the DisposableEmailApi class.

Parameters:



45
46
47
# File 'lib/aspose-email-cloud/api/disposable_email_api.rb', line 45

def initialize(api_invoker)
  @api_invoker = api_invoker
end

Instance Attribute Details

#api_invokerObject (readonly)

Returns the value of attribute api_invoker.



31
32
33
# File 'lib/aspose-email-cloud/api/disposable_email_api.rb', line 31

def api_invoker
  @api_invoker
end

Instance Method Details

#is_disposable(request) ⇒ ValueTOfBoolean

Check email address is disposable

Parameters:

Returns:



52
53
54
55
# File 'lib/aspose-email-cloud/api/disposable_email_api.rb', line 52

def is_disposable(request)
  http_request = request.to_http_info(@api_invoker.api_client)
  @api_invoker.make_request(http_request, :GET, 'ValueTOfBoolean')
end