class Kintone::Command::File

Public Class Methods

path() click to toggle source
# File lib/kintone/command/file.rb, line 4
def self.path
  'file'
end

Public Instance Methods

get(file_key) click to toggle source
# File lib/kintone/command/file.rb, line 8
def get(file_key)
  @api.get(@url, fileKey: file_key)
end
register(path, content_type, original_filename) click to toggle source
# File lib/kintone/command/file.rb, line 12
def register(path, content_type, original_filename)
  @api.post_file(@url, path, content_type, original_filename)
end