Class: NeverBounce::API::Request::POEConfirm

Inherits:
Base
  • Object
show all
Defined in:
lib/never_bounce/api/request/poe_confirm.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#api_key, #api_url, #headers, #user_agent

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_curl, #to_httparty

Instance Attribute Details

#confirmation_tokenString

Returns:

  • (String)


15
16
17
# File 'lib/never_bounce/api/request/poe_confirm.rb', line 15

def confirmation_token
  @confirmation_token
end

#emailString

Returns:

  • (String)


9
10
11
# File 'lib/never_bounce/api/request/poe_confirm.rb', line 9

def email
  @email
end

#resultString

Returns:

  • (String)


18
19
20
# File 'lib/never_bounce/api/request/poe_confirm.rb', line 18

def result
  @result
end

#transaction_idString

Returns:

  • (String)


12
13
14
# File 'lib/never_bounce/api/request/poe_confirm.rb', line 12

def transaction_id
  @transaction_id
end

Class Method Details

.http_methodSymbol

Returns:

  • (Symbol)


21
22
23
# File 'lib/never_bounce/api/request/poe_confirm.rb', line 21

def self.http_method
  :get
end

.pathString

Returns:

  • (String)


26
27
28
# File 'lib/never_bounce/api/request/poe_confirm.rb', line 26

def self.path
  "poe/confirm"
end

.response_klassResponse::POEConfirm



31
32
33
# File 'lib/never_bounce/api/request/poe_confirm.rb', line 31

def self.response_klass
  Response::POEConfirm
end

Instance Method Details

#to_hHash

Returns:

  • (Hash)


36
37
38
39
40
41
42
43
44
# File 'lib/never_bounce/api/request/poe_confirm.rb', line 36

def to_h
  {
    email: require_attr(:email),
    transaction_id: require_attr(:transaction_id),
    confirmation_token: require_attr(:confirmation_token),
    result: require_attr(:result),
    key: require_attr(:api_key),
  }
end