Class: DeathByCaptcha::User

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

Overview

Model of a User returned by DeathByCaptcha API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#initialize

Constructor Details

This class inherits a constructor from DeathByCaptcha::Model

Instance Attribute Details

#balanceObject

Returns the value of attribute balance


6
7
8
# File 'lib/deathbycaptcha/models/user.rb', line 6

def balance
  @balance
end

#is_bannedObject

Returns the value of attribute is_banned


6
7
8
# File 'lib/deathbycaptcha/models/user.rb', line 6

def is_banned
  @is_banned
end

#rateObject

Returns the value of attribute rate


6
7
8
# File 'lib/deathbycaptcha/models/user.rb', line 6

def rate
  @rate
end

#userObject

Returns the value of attribute user


6
7
8
# File 'lib/deathbycaptcha/models/user.rb', line 6

def user
  @user
end

Instance Method Details

#idObject


8
9
10
# File 'lib/deathbycaptcha/models/user.rb', line 8

def id
  @user
end