Class: Updox::Models::Practice

Inherits:
Model
  • Object
show all
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

from_response

Class Method Details

.queryObject



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

#createObject



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