Sha256: e64e230196f9949ff4244eb8e40f77bfbb4b48fa3ccaf670469ce6b29432d531
Contents?: true
Size: 333 Bytes
Versions: 6
Compression:
Stored size: 333 Bytes
Contents
# frozen_string_literal: true class Zendesk2::GetCategory include Zendesk2::Request request_method :get request_path { |r| "/categories/#{r.category_id}.json" } def category_id params.fetch('category').fetch('id') end def mock mock_response( 'category' => find!(:categories, category_id) ) end end
Version data entries
6 entries across 6 versions & 1 rubygems