Sha256: a81da4922f6b5e9d174ab8d1ee557e591093872c445fdc13bbbeeb65c388d6f9
Contents?: true
Size: 310 Bytes
Versions: 6
Compression:
Stored size: 310 Bytes
Contents
# frozen_string_literal: true class Zendesk2::GetGroup include Zendesk2::Request request_method :get request_path { |r| "/groups/#{r.group_id}.json" } def group_id @_group_id ||= params.fetch('group').fetch('id') end def mock mock_response('group' => find!(:groups, group_id)) end end
Version data entries
6 entries across 6 versions & 1 rubygems