christopherstyles/ngp_van

View on GitHub
lib/ngp_van/client/notes.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module NgpVan
  class Client
    module Notes
      def note_category_types(params: {})
        get(path: 'notes/categoryTypes', params: params)
      end

      def note_categories(params: {})
        get(path: 'notes/categories', params: params)
      end

      def note_category(id:, params: {})
        verify_id(id)
        get(path: "notes/categories/#{id}", params: params)
      end
    end
  end
end