Sha256: aa24f2c0216a890d6246a0cd6cef22a53acc7a9dfca96cf0a22a87b4a0eaa73c

Contents?: true

Size: 600 Bytes

Versions: 75

Compression:

Stored size: 600 Bytes

Contents

module AthenaHealth
  module Endpoints
    module Departments
      def all_departments(practice_id:, params: {})
        response = @api.call(
          endpoint: "#{practice_id}/departments",
          method: :get,
          params: params
        )

        DepartmentCollection.new(response)
      end

      def find_department(practice_id:, department_id:, params: {})
        response = @api.call(
          endpoint: "#{practice_id}/departments/#{department_id}",
          method: :get,
          params: params
        )

        Department.new(response.first)
      end
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
athena_health-2.0.4 lib/athena_health/endpoints/departments.rb
athena_health-2.0.3 lib/athena_health/endpoints/departments.rb
athena_health-2.0.2 lib/athena_health/endpoints/departments.rb
athena_health-2.0.1 lib/athena_health/endpoints/departments.rb
athena_health-2.0.0 lib/athena_health/endpoints/departments.rb
athena_health-1.0.51 lib/athena_health/endpoints/departments.rb
athena_health-1.0.50 lib/athena_health/endpoints/departments.rb
athena_health-1.0.49 lib/athena_health/endpoints/departments.rb
athena_health-1.0.48 lib/athena_health/endpoints/departments.rb
athena_health-1.0.46 lib/athena_health/endpoints/departments.rb
athena_health-1.0.45 lib/athena_health/endpoints/departments.rb
athena_health-1.0.44 lib/athena_health/endpoints/departments.rb
athena_health-1.0.43 lib/athena_health/endpoints/departments.rb
athena_health-1.0.42 lib/athena_health/endpoints/departments.rb
athena_health-1.0.41 lib/athena_health/endpoints/departments.rb
athena_health-1.0.39 lib/athena_health/endpoints/departments.rb
athena_health-1.0.38 lib/athena_health/endpoints/departments.rb
athena_health-1.0.37 lib/athena_health/endpoints/departments.rb
athena_health-1.0.36 lib/athena_health/endpoints/departments.rb
athena_health-1.0.35 lib/athena_health/endpoints/departments.rb