Class: Updox::Models::Practice
- Defined in:
- lib/updox/models/practice.rb
Constant Summary collapse
- CREATE_ENDPOINT =
'/PracticeCreate'.freeze
- QUERY_ENDPOINT =
'/PracticeList'.freeze
- LIST_TYPE =
'practiceList'.freeze
- LIST_NAME =
'practices'
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Model
Class Method Details
.query ⇒ Object
39 40 41 |
# File 'lib/updox/models/practice.rb', line 39 def self.query from_response(UpdoxClient.connection.request(endpoint: QUERY_ENDPOINT, required_auths: Updox::Models::Auth::AUTH_APP), self) end |
Instance Method Details
#create ⇒ Object
35 36 37 |
# File 'lib/updox/models/practice.rb', line 35 def create UpdoxClient.connection.request(endpoint: CREATE_ENDPOINT, body: self.to_h, required_auths: Updox::Models::Auth::AUTH_APP) end |