Class: Postscale::Resources::Inbound
- Inherits:
-
Resource
- Object
- Resource
- Postscale::Resources::Inbound
show all
- Defined in:
- lib/postscale/resources/inbound.rb
Instance Method Summary
collapse
Methods inherited from Resource
#initialize
Instance Method Details
#download_attachment(email_id, attachment_id) ⇒ Object
14
15
16
17
18
19
|
# File 'lib/postscale/resources/inbound.rb', line 14
def download_attachment(email_id, attachment_id)
@http.get(
"/v1/inbound-emails/#{encode(email_id)}/attachments/#{encode(attachment_id)}/download",
parse_as: :bytes
)
end
|
#get(id) ⇒ Object
10
11
12
|
# File 'lib/postscale/resources/inbound.rb', line 10
def get(id)
@http.get("/v1/inbound-emails/#{encode(id)}")
end
|
#list(params = nil, **kwargs) ⇒ Object
6
7
8
|
# File 'lib/postscale/resources/inbound.rb', line 6
def list(params = nil, **kwargs)
@http.get("/v1/inbound-emails", params: params_hash(params, kwargs))
end
|