class Updox::Models::Auth

Constants

AUTH_ACCT
AUTH_APP
AUTH_FULL
AUTH_NONE
PING_ACCT_ENDPOINT
PING_APP_ENDPOINT
PING_ENDPOINT
PING_FULL_ENDPOINT

Public Instance Methods

ping() click to toggle source
# File lib/updox/models/auth.rb, line 28
def ping
  Model.request(endpoint: PING_ENDPOINT, auth: self)
end
ping_with_account_auth() click to toggle source
# File lib/updox/models/auth.rb, line 36
def ping_with_account_auth
  Model.request(endpoint: PING_ACCT_ENDPOINT, auth: self, required_auths: AUTH_ACCT)
end
ping_with_application_auth() click to toggle source
# File lib/updox/models/auth.rb, line 32
def ping_with_application_auth
  Model.request(endpoint: PING_APP_ENDPOINT, auth: self, required_auths: AUTH_APP)
end
ping_with_full_auth() click to toggle source
# File lib/updox/models/auth.rb, line 40
def ping_with_full_auth
  Model.request(endpoint: PING_FULL_ENDPOINT, auth: self, required_auths: AUTH_FULL)
end
to_h() click to toggle source
Calls superclass method
# File lib/updox/models/auth.rb, line 24
def to_h
  { auth: super.to_h }
end