Sha256: 9eeeb05ac4a6b1c2933a3ac516fc5c57820be58fd29ede023d167ccdd1173b15

Contents?: true

Size: 369 Bytes

Versions: 9

Compression:

Stored size: 369 Bytes

Contents

require 'caseblocks_api'
require 'active_support/inflector'

module CaseblocksAPI
  class GetCases
    def initialize(client)
      @client = client
    end

    def execute(ids)
      url = "/case_blocks/cases"
      @client.get(url, query: {ids: ids})
    end
  end

  class Client
    def get_cases(ids)
      GetCases.new(self.class).execute(ids)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
caseblocks_api-0.2.20 lib/caseblocks_api/get_cases.rb
caseblocks_api-0.2.19 lib/caseblocks_api/get_cases.rb
caseblocks_api-0.2.18 lib/caseblocks_api/get_cases.rb
caseblocks_api-0.2.17 lib/caseblocks_api/get_cases.rb
caseblocks_api-0.2.16 lib/caseblocks_api/get_cases.rb
caseblocks_api-0.2.15 lib/caseblocks_api/get_cases.rb
caseblocks_api-0.2.14 lib/caseblocks_api/get_cases.rb
caseblocks_api-0.2.13 lib/caseblocks_api/get_cases.rb
caseblocks_api-0.2.12 lib/caseblocks_api/get_cases.rb