class PlateApi::PlateObject::Attachment

Public Class Methods

api_name() click to toggle source
# File lib/plate_api/plate_object/attachment.rb, line 11
def self.api_name
  "attachments"
end
parent_class() click to toggle source
# File lib/plate_api/plate_object/attachment.rb, line 15
def self.parent_class
  Site
end

Public Instance Methods

download() click to toggle source
# File lib/plate_api/plate_object/attachment.rb, line 7
def download
  @object_handler.api_connector.get("attachments/#{@id}/download", {}, :raw)
end