Class: SendGridWebApi::Modules::Stats

Inherits:
Client
  • Object
show all
Defined in:
lib/web_api/stats.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

#get(options = {}) ⇒ Object



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

def get options = {}
  stats_get_url = "stats.get.json"
  query_api(stats_get_url, options)
end