Sha256: 2de60bfc97a0f6b209111fa33c8bc49bb54acf3578b48076b3ca6bcad9df9434

Contents?: true

Size: 302 Bytes

Versions: 7

Compression:

Stored size: 302 Bytes

Contents

require 'kintone/command'

class Kintone::Command::File < Kintone::Command
  def self.path
    'file'
  end

  def get(file_key)
    @api.get(@url, fileKey: file_key)
  end

  def register(path, content_type, original_filename)
    @api.post_file(@url, path, content_type, original_filename)
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
kintone_rb-1.0.1 lib/kintone/command/file.rb
kintone_rb-1.0.0 lib/kintone/command/file.rb
kintone-oauth-extension-0.2.2 lib/kintone/command/file.rb
kintone-oauth-extension-0.2.1 lib/kintone/command/file.rb
kintone-0.1.5 lib/kintone/command/file.rb
kintone-0.1.4 lib/kintone/command/file.rb
kintone-0.1.3 lib/kintone/command/file.rb