Class: PewPew::Resources::Bounces
- Inherits:
-
Object
- Object
- PewPew::Resources::Bounces
- Includes:
- PewPew::Resource
- Defined in:
- lib/pew_pew/resources/bounces.rb
Instance Method Summary collapse
-
#all ⇒ Mash
Fetches all bounces.
-
#create(params) ⇒ Mash
Creates a new bounce.
-
#find(address) ⇒ Mash
Fetch all bounces by address.
-
#remove(address_or_id) ⇒ Mash
Removes existing bounces.
Instance Method Details
#all ⇒ Mash
Fetches all bounces.
10 11 12 |
# File 'lib/pew_pew/resources/bounces.rb', line 10 def all get("#{domain}/bounces") end |
#create(params) ⇒ Mash
Creates a new bounce.
28 29 30 |
# File 'lib/pew_pew/resources/bounces.rb', line 28 def create(params) post("#{domain}/bounces", params) end |
#find(address) ⇒ Mash
Fetch all bounces by address.
18 19 20 |
# File 'lib/pew_pew/resources/bounces.rb', line 18 def find(address) get("#{domain}/bounces/#{address}") end |
#remove(address_or_id) ⇒ Mash
Removes existing bounces.
36 37 38 |
# File 'lib/pew_pew/resources/bounces.rb', line 36 def remove(address_or_id) delete("#{domain}/bounces/#{address_or_id}") end |