Class: PewPew::Client
- Inherits:
-
Object
- Object
- PewPew::Client
- Includes:
- Relax::Client
- Defined in:
- lib/pew_pew/client.rb
Instance Method Summary collapse
-
#bounces(options = {}) ⇒ Resources::Bounces
Builds a new instance of the bounces resource for the given domain.
-
#campaigns(options = {}) ⇒ Resources::Campaigns
Builds a new instance of the campaigns resource for the given domain.
-
#complaints(options = {}) ⇒ Resources::Complaints
Builds a new instance of the complaints resource for the given domain.
-
#initialize ⇒ Client
constructor
Returns a new client instance and configures its default values.
-
#lists ⇒ Resources::Lists
Builds a new instance of the lists resource.
-
#logs(options = {}) ⇒ Resources::Logs
Builds a new instance of the logs resource for the given domain.
-
#mailboxes(options = {}) ⇒ Resources::Mailboxes
Builds a new instance of the mailboxes resource for the given domain.
-
#messages(options = {}) ⇒ Resources::Messages
Builds a new instance of the messages resource for the given domain.
-
#routes ⇒ Resources::Routes
Builds a new instance of the routes resource.
-
#stats(options = {}) ⇒ Resources::Stats
Builds a new instance of the stats resource for the given domain.
-
#unsubscribes(options = {}) ⇒ Resources::Unsubscribes
Builds a new instance of the unsubscribes resource for the given domain.
Constructor Details
Instance Method Details
#bounces(options = {}) ⇒ Resources::Bounces
Builds a new instance of the bounces resource for the given domain.
16 17 18 |
# File 'lib/pew_pew/client.rb', line 16 def bounces(={}) Resources::Bounces.new(self, ) end |
#campaigns(options = {}) ⇒ Resources::Campaigns
Builds a new instance of the campaigns resource for the given domain.
24 25 26 |
# File 'lib/pew_pew/client.rb', line 24 def campaigns(={}) Resources::Campaigns.new(self, ) end |
#complaints(options = {}) ⇒ Resources::Complaints
Builds a new instance of the complaints resource for the given domain.
32 33 34 |
# File 'lib/pew_pew/client.rb', line 32 def complaints(={}) Resources::Complaints.new(self, ) end |
#lists ⇒ Resources::Lists
Builds a new instance of the lists resource.
39 40 41 |
# File 'lib/pew_pew/client.rb', line 39 def lists Resources::Lists.new(self) end |
#logs(options = {}) ⇒ Resources::Logs
Builds a new instance of the logs resource for the given domain.
47 48 49 |
# File 'lib/pew_pew/client.rb', line 47 def logs(={}) Resources::Logs.new(self, ) end |
#mailboxes(options = {}) ⇒ Resources::Mailboxes
Builds a new instance of the mailboxes resource for the given domain.
55 56 57 |
# File 'lib/pew_pew/client.rb', line 55 def mailboxes(={}) Resources::Mailboxes.new(self, ) end |
#messages(options = {}) ⇒ Resources::Messages
Builds a new instance of the messages resource for the given domain.
63 64 65 |
# File 'lib/pew_pew/client.rb', line 63 def (={}) Resources::Messages.new(self, ) end |
#routes ⇒ Resources::Routes
Builds a new instance of the routes resource.
70 71 72 |
# File 'lib/pew_pew/client.rb', line 70 def routes Resources::Routes.new(self) end |
#stats(options = {}) ⇒ Resources::Stats
Builds a new instance of the stats resource for the given domain.
78 79 80 |
# File 'lib/pew_pew/client.rb', line 78 def stats(={}) Resources::Stats.new(self, ) end |
#unsubscribes(options = {}) ⇒ Resources::Unsubscribes
Builds a new instance of the unsubscribes resource for the given domain.
86 87 88 |
# File 'lib/pew_pew/client.rb', line 86 def unsubscribes(={}) Resources::Unsubscribes.new(self, ) end |