Sha256: d043ffd1bfd1f282358799f6530ca3c414922f9c1a80872a93d251239ae97ab7

Contents?: true

Size: 410 Bytes

Versions: 1

Compression:

Stored size: 410 Bytes

Contents

require 'kintone/command'
require 'kintone/api'

class Kintone::Command::Record
  PATH = "record.json"

  def initialize(api)
    @api = api
  end

  def get(app, id)
    @api.get(PATH, {:app => app, :id => id})
  end

  def create(app, record)
    @api.post(PATH, {:app => app, :record => record})
  end

  def update(app, id, record)
    @api.put(PATH, {:app => app, :id => id, :record => record})
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kintone-0.0.2 lib/kintone/command/record.rb