Module: Insightly2::DSL::FileAttachments

Included in:
Insightly2::DSL
Defined in:
lib/insightly2/dsl/file_attachments.rb

Instance Method Summary collapse

Instance Method Details

#get_file_attachment(id: nil) ⇒ Faraday::Response

GET /v2.1/FileAttachments/id

Parameters:

  • id (String, Fixnum) (defaults to: nil)

    A file attachment’s ID.

Returns:

  • (Faraday::Response)

    .

Raises:

  • (ArgumentError)

    If the method arguments are blank.



9
10
11
12
# File 'lib/insightly2/dsl/file_attachments.rb', line 9

def get_file_attachment(id: nil)
  raise ArgumentError, "ID cannot be blank" if id.blank?
  request(:get, "FileAttachments/#{id}")
end