Module: AthenaHealth::Endpoints::Practices
- Included in:
- Client
- Defined in:
- lib/athena_health/endpoints/practices.rb
Instance Method Summary collapse
Instance Method Details
#all_practices(params: {}) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/athena_health/endpoints/practices.rb', line 4 def all_practices(params: {}) response = @api.call( endpoint: '1/practiceinfo', method: :get, params: params ) PracticeCollection.new(response) end |
#find_practice(practice_id:, params: {}) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/athena_health/endpoints/practices.rb', line 14 def find_practice(practice_id:, params: {}) response = @api.call( endpoint: "#{practice_id}/practiceinfo", method: :get, params: params ) PracticeCollection.new(response).practices.first end |