Class: SendGridWebApi::Modules::ParseEmail

Inherits:
Client
  • Object
show all
Defined in:
lib/web_api/parse.rb

Instance Attribute Summary

Attributes inherited from Base

#api_key

Instance Method Summary collapse

Methods inherited from Client

#base_url

Methods included from SendGridWebApi::Modules

#apikey, #blocks, #bounces, #event_notification, #invalid_emails, #mail, #parse_email, #profile, #spam, #stats, #sub_user, #unsubscribes

Methods inherited from Base

#builder_options, #initialize, #make_request_url, #query_api, #query_delete_api, #query_patch_api, #query_post_api, #query_post_json_api, #session, #to_query

Constructor Details

This class inherits a constructor from SendGridWebApi::Base

Instance Method Details

#delete(options = {}) ⇒ Object



13
14
15
16
# File 'lib/web_api/parse.rb', line 13

def delete options = {}
  parse_email_delete_url = "parse.delete.json"
  query_api(parse_email_delete_url, options)
end

#get(options = {}) ⇒ Object



3
4
5
6
# File 'lib/web_api/parse.rb', line 3

def get options = {}
  parse_email_get_url = "parse.get.json"
  query_api(parse_email_get_url, options)
end

#set(options = {}) ⇒ Object



8
9
10
11
# File 'lib/web_api/parse.rb', line 8

def set options = {}
  parse_email_set_url = "parse.set.json"
  query_api(parse_email_set_url, options)
end