Class: NeverBounce::API::Request::AccountInfo

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

Instance Attribute Summary

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

Class Method Details

.http_methodSymbol

Returns:

  • (Symbol)


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

def self.http_method
  :get
end

.pathString

Returns:

  • (String)


14
15
16
# File 'lib/never_bounce/api/request/account_info.rb', line 14

def self.path
  "account/info"
end

.response_klassResponse::AccountInfo



19
20
21
# File 'lib/never_bounce/api/request/account_info.rb', line 19

def self.response_klass
  Response::AccountInfo
end

Instance Method Details

#to_hObject



23
24
25
26
27
# File 'lib/never_bounce/api/request/account_info.rb', line 23

def to_h
  {
    key: require_attr(:api_key),
  }
end