Module: SendGridWebApi::Modules

Included in:
Client
Defined in:
lib/web_api/mail.rb,
lib/web_api/spam.rb,
lib/web_api/parse.rb,
lib/web_api/stats.rb,
lib/web_api/blocks.rb,
lib/web_api/bounces.rb,
lib/web_api/modules.rb,
lib/web_api/profile.rb,
lib/web_api/unsubscribes.rb,
lib/web_api/invalid_emails.rb,
lib/web_api/event_notification.rb

Defined Under Namespace

Classes: Block, Bounce, EventNotification, InvalidEmail, Mail, ParseEmail, Profile, Spam, Stats, Unsubscribe

Instance Method Summary collapse

Instance Method Details

#apikeyObject



51
52
53
# File 'lib/web_api/modules.rb', line 51

def apikey
  @apikey ||= SendGridWebApi::ApiKey.new(@api_key)
end

#blocksObject



11
12
13
# File 'lib/web_api/modules.rb', line 11

def blocks
  @block_instance ||= Block.new(@api_key)
end

#bouncesObject



7
8
9
# File 'lib/web_api/modules.rb', line 7

def bounces
  @bounce_instance ||= Bounce.new(@api_key)
end

#event_notificationObject



31
32
33
# File 'lib/web_api/modules.rb', line 31

def event_notification
  @event_notification_instance ||= EventNotification.new(@api_key)
end

#invalid_emailsObject



19
20
21
# File 'lib/web_api/modules.rb', line 19

def invalid_emails
  @invalid_email_instance ||= InvalidEmail.new(@api_key)
end

#mailObject



43
44
45
# File 'lib/web_api/modules.rb', line 43

def mail
  @mail_instance ||= Mail.new(@api_key)
end

#parse_emailObject



27
28
29
# File 'lib/web_api/modules.rb', line 27

def parse_email
  @parse_email_instance ||= ParseEmail.new(@api_key)
end

#profileObject



39
40
41
# File 'lib/web_api/modules.rb', line 39

def profile
  @profile_instance ||= Profile.new(@api_key)
end

#spamObject



15
16
17
# File 'lib/web_api/modules.rb', line 15

def spam
  @spam_instance ||= Spam.new(@api_key)
end

#statsObject



35
36
37
# File 'lib/web_api/modules.rb', line 35

def stats
  @stats_instance ||= Stats.new(@api_key)
end

#sub_userObject



47
48
49
# File 'lib/web_api/modules.rb', line 47

def sub_user
  @sub_user ||= SendGridWebApi::SubUser.new(@api_key)
end

#unsubscribesObject



23
24
25
# File 'lib/web_api/modules.rb', line 23

def unsubscribes
  @unsubscribe_instance ||= Unsubscribe.new(@api_key)
end