Sha256: 9ced6db40b1895a1f1c76a0586093ad500c310546baaa1a7d302f9ad8a1388e7

Contents?: true

Size: 600 Bytes

Versions: 1

Compression:

Stored size: 600 Bytes

Contents

# frozen_string_literal: true

require 'freshdesk_api/resource'

module FreshdeskAPI
  class SolutionFolder < Resource
    # Need to specify category_id in url

    def api_url(_options = {})
      format('/solution/categories/%<category_id>/folders', attributes)
    end

    def request_namespace
      'solution_folder'
    end

    def response_namespace
      :folder
    end

    class << self
      def api_url(options = {})
        format('/solution/categories/%<category_id>/folders', options)
      end

      def collection_namespace
        'category/folders'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
freshdesk_api-0.2.0 lib/freshdesk_api/resources/solution_folder.rb