Class: Sendgrid::Web::Blocks
- Inherits:
-
Client
- Object
- Client
- Sendgrid::Web::Blocks
show all
- Defined in:
- lib/sendgrid/web/blocks.rb
Instance Method Summary
collapse
Methods inherited from Client
#config, config, configure
Instance Method Details
#delete(email: nil) ⇒ Object
7
8
9
10
|
# File 'lib/sendgrid/web/blocks.rb', line 7
def delete(email: nil)
raise ArgumentError.new('Missing required `email` option') if email.nil?
connection.post('blocks.delete.json', default_params.merge(email: email))
end
|
#get ⇒ Object
3
4
5
|
# File 'lib/sendgrid/web/blocks.rb', line 3
def get
connection.post('blocks.get.json', default_params)
end
|