Class: Userbin::Account

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

Class Method Summary collapse

Methods inherited from Model

#attributes, #initialize, instance_custom, #to_json

Constructor Details

This class inherits a constructor from Userbin::Model

Class Method Details

.fetchObject



3
4
5
# File 'lib/userbin/models/account.rb', line 3

def self.fetch
  get('/v1/account')
end

.update(settings = {}) ⇒ Object



7
8
9
# File 'lib/userbin/models/account.rb', line 7

def self.update(settings = {})
  put('/v1/account', settings: settings)
end