Sha256: 44bcae6bf9258048ce26272296a157a5d9f8e8ca3db86405579d659cddd150a5

Contents?: true

Size: 414 Bytes

Versions: 5

Compression:

Stored size: 414 Bytes

Contents

require 'kintone/command'

class Kintone::Command::Apps < Kintone::Command
  def self.path
    'apps'
  end

  def get(params = {})
    query = {}
    params.keys.each do |key|
      if params[key].is_a?(Array)
        params[key].each_with_index { |v, i| query["#{key}[#{i}]"] = v }
      else
        query[key] = params[key]
      end
    end
    response = @api.get(@url, query)
    response['apps']
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kintone-0.1.5 lib/kintone/command/apps.rb
kintone-0.1.4 lib/kintone/command/apps.rb
kintone-0.1.3 lib/kintone/command/apps.rb
kintone-0.1.2 lib/kintone/command/apps.rb
kintone-0.1.1 lib/kintone/command/apps.rb