lib/trubl/api/touts.rb
# Reject a tout. Takes an optional "by" arg in the options hash (user_uid) that denotes the rejecter
# returns trubl::tout instance or nil
Reject a tout. Takes an optional "by" arg in the options hash (user_uid) that denotes the rejecter
returns trubl::tout instance or nil
Reject a tout . Takes an optional " by " arg in the options hash ( user_uid ) that denotes the rejecter returns trubl :: tout instance or nil
def reject_tout(uid, options = {})
        path = "touts/#{uid}/reject/by/#{options.delete(:by)}" if options[:by].present?
        path ||= "touts/#{uid}/reject"
        response = put(path, {body: {rejection_reason: options[:rejection_reason]}})
        Trubl::Tout.new.from_response(response)
      end
def reject_tout ( uid , options = { } ) path = "touts/#{uid}/reject/by/#{options.delete(:by)}" if options [ :by ] . present? path ||= "touts/#{uid}/reject" response = put ( path , { body : { rejection_reason : options [ :rejection_reason ] } } ) Trubl :: Tout . new . from_response ( response ) end
Reject a tout.
Reject a tout .
uid
options