Class: Fastbound::Resources::Attachments
- Inherits:
-
Object
- Object
- Fastbound::Resources::Attachments
- Defined in:
- lib/fastbound/resources/attachments.rb
Instance Method Summary collapse
- #download(attachment_id) ⇒ Object
-
#initialize(client) ⇒ Attachments
constructor
A new instance of Attachments.
Constructor Details
#initialize(client) ⇒ Attachments
Returns a new instance of Attachments.
4 5 6 |
# File 'lib/fastbound/resources/attachments.rb', line 4 def initialize(client) @client = client end |
Instance Method Details
#download(attachment_id) ⇒ Object
8 9 10 |
# File 'lib/fastbound/resources/attachments.rb', line 8 def download() @client.get_binary("#{@client.base_path}/Attachments/Download/#{}") end |