Sha256: 5e47fff62e8194f534f457cfcfe1018c7137a309bfed584050a306667e999573

Contents?: true

Size: 470 Bytes

Versions: 3

Compression:

Stored size: 470 Bytes

Contents

module AthenaHealth
  module Endpoints
    module Practices
      def all_practices(params: {})
        response = @api.call(endpoint: '1/practiceinfo', method: :get, params: params)
        PracticeCollection.new(response)
      end

      def find_practice(practice_id:, params: {})
        response = @api.call(endpoint: "#{practice_id}/practiceinfo", method: :get, params: params)
        PracticeCollection.new(response).practices.first
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
athena_health-0.6.0 lib/athena_health/endpoints/practices.rb
athena_health-0.5.0 lib/athena_health/endpoints/practices.rb
athena_health-0.4.0 lib/athena_health/endpoints/practices.rb