Sha256: 8f2c415f535cb0247b68094d94343df4a18e638733b30222b8f6eebcc4bbb61f
Contents?: true
Size: 1.1 KB
Versions: 7
Compression:
Stored size: 1.1 KB
Contents
#loading modules %w(bounces spam blocks invalid_emails unsubscribes parse event_notification stats profile mail).each do |mod| require "web_api/" + mod end module SendGridWebApi::Modules def bounces @bounce_instance ||= Bounce.new(@api_user, @api_key) end def blocks @block_instance ||= Block.new(@api_user, @api_key) end def spam @spam_instance ||= Spam.new(@api_user, @api_key) end def invalid_emails @invalid_email_instance ||= InvalidEmail.new(@api_user, @api_key) end def unsubscribes @unsubscribe_instance ||= Unsubscribe.new(@api_user, @api_key) end def parse_email @parse_email_instance ||= ParseEmail.new(@api_user, @api_key) end def event_notification @event_notification_instance ||= EventNotification.new(@api_user, @api_key) end def stats @stats_instance ||= Stats.new(@api_user, @api_key) end def profile @profile_instance ||= Profile.new(@api_user, @api_key) end def mail @mail_instance ||= Mail.new(@api_user, @api_key) end def sub_user @sub_user ||= SendGridWebApi::SubUser.new(@api_user, @api_key) end end
Version data entries
7 entries across 7 versions & 1 rubygems