Module: DList::User::Verification
- Included in:
- Client
- Defined in:
- lib/dblista/user/verification.rb
Overview
User client - verification (only for staff)
Instance Method Summary collapse
-
#approve(id, reason = 'Brak powodu') ⇒ Boolean
Approves specified bot.
-
#reject(id, reason = 'Brak powodu') ⇒ Boolean
Rejects specified bot.
-
#set_pending(id) ⇒ Boolean
Sets specified bot verification status to pending.
Instance Method Details
#approve(id, reason = 'Brak powodu') ⇒ Boolean
Approves specified bot
13 14 15 16 17 18 |
# File 'lib/dblista/user/verification.rb', line 13 def approve(id, reason = 'Brak powodu') DList._validate_id id DList._post("/bots/verify/#{id}/approve?reason=#{CGI.escape reason}", nil, @token) true end |