Class: Userbin::User

Inherits:
Model
  • Object
show all
Defined in:
lib/userbin/models/user.rb

Instance Method Summary collapse

Methods inherited from Model

#attributes, #initialize, instance_custom, #to_json

Constructor Details

This class inherits a constructor from Userbin::Model

Instance Method Details

#backup_codes(params = {}) ⇒ Object


12
13
14
# File 'lib/userbin/models/user.rb', line 12

def backup_codes(params={})
  Userbin::BackupCodes.get("/v1/users/#{id}/backup_codes", params)
end

#generate_backup_codes(params = {}) ⇒ Object


16
17
18
# File 'lib/userbin/models/user.rb', line 16

def generate_backup_codes(params={})
  Userbin::BackupCodes.post("/v1/users/#{id}/backup_codes", params)
end