Sha256: 210b355076deee8adf06b2917907d449d29c675f945ff099a6fce28795b1f3fa

Contents?: true

Size: 563 Bytes

Versions: 1

Compression:

Stored size: 563 Bytes

Contents

module AthenaHealth
  class Client
    def initialize(version:, key:, secret:)
      @api = AthenaHealth::Connection.new(version: version, key: key, secret: secret)
    end

    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).practiceinfo.first
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
athena_health-0.1.0 lib/athena_health/client.rb