class FastBound::Attachment

Constants

ENDPOINTS

Public Class Methods

new(client) click to toggle source
# File lib/fastbound-ruby/attachment.rb, line 12
def initialize(client)
  @client = client
end

Public Instance Methods

download(attachment_id) click to toggle source
# File lib/fastbound-ruby/attachment.rb, line 16
def download(attachment_id)
  endpoint = ENDPOINTS[:download] % attachment_id

  get_request(@client, endpoint)
end