Sha256: 13be06c42976af92f049a65dac1f0ed69d187ff342bef57a5fc96e39e2a1b9cf

Contents?: true

Size: 262 Bytes

Versions: 11

Compression:

Stored size: 262 Bytes

Contents

# frozen_string_literal: true

$LOAD_PATH.unshift("#{__dir__}/../lib")

require "hachi"

api = Hachi::API.new

# list up cases
results = api.case.list
ids = results.map { |result| result.dig("id") }

ids.each do |id|
  kase = api.case.get_by_id(id)
  p kase
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hachi-1.0.0 samples/03_list_cases.rb
hachi-0.3.2 samples/03_list_cases.rb
hachi-0.3.1 samples/03_list_cases.rb
hachi-0.3.0 samples/03_list_cases.rb
hachi-0.2.4 samples/03_list_cases.rb
hachi-0.2.3 samples/03_list_cases.rb
hachi-0.2.2 samples/03_list_cases.rb
hachi-0.2.1 samples/03_list_cases.rb
hachi-0.2.0 samples/03_list_cases.rb
hachi-0.1.2 samples/03_list_cases.rb
hachi-0.1.1 samples/03_list_cases.rb