Class: Fastbound::Resources::Attachments

Inherits:
Object
  • Object
show all
Defined in:
lib/fastbound/resources/attachments.rb

Instance Method Summary collapse

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(attachment_id)
  @client.get_binary("#{@client.base_path}/Attachments/Download/#{attachment_id}")
end