Sha256: 6ca6d2e843c7f6ae3f27c93127aecf1c15bc9dc973f7c512ab37223bad627170

Contents?: true

Size: 335 Bytes

Versions: 6

Compression:

Stored size: 335 Bytes

Contents

# frozen_string_literal: true
class Zendesk2::GetAssignableGroups
  include Zendesk2::Request

  request_method :get
  request_path { |_r| '/groups/assignable.json' }

  page_params!

  def mock
    groups = cistern.data[:groups].values.select { |group| group.select { |g| !g['deleted'] } }

    page(groups, root: 'groups')
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
zendesk2-1.15.0 lib/zendesk2/get_assignable_groups.rb
zendesk2-1.13.1 lib/zendesk2/get_assignable_groups.rb
zendesk2-1.13.0 lib/zendesk2/get_assignable_groups.rb
zendesk2-1.12.0 lib/zendesk2/get_assignable_groups.rb
zendesk2-1.11.0 lib/zendesk2/get_assignable_groups.rb
zendesk2-1.10.0 lib/zendesk2/get_assignable_groups.rb