Class: Credigy::EmailCreation

Inherits:
Authorized show all
Defined in:
lib/credigy/email_creation.rb

Instance Attribute Summary collapse

Attributes inherited from Authorized

#authorization_token

Instance Method Summary collapse

Methods inherited from Authorized

#soap_header

Methods inherited from Request

#basic_config, #call, #client, #config_options, #extra_config_options, #response, #response_class, #soap_header, #wsdl

Constructor Details

#initialize(authorization_token, address:) ⇒ EmailCreation

Returns a new instance of EmailCreation.



8
9
10
# File 'lib/credigy/email_creation.rb', line 8

def initialize(authorization_token, address:)
  @authorization_token, @address = authorization_token, address
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



6
7
8
# File 'lib/credigy/email_creation.rb', line 6

def address
  @address
end

Instance Method Details

#messageObject



16
17
18
# File 'lib/credigy/email_creation.rb', line 16

def message
  { 'cred:emailAddress' => address }
end

#operationObject



12
13
14
# File 'lib/credigy/email_creation.rb', line 12

def operation
  :save_email
end