Class: CodesWholesale::Models::Account

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ Account

Returns a new instance of Account.



6
7
8
9
10
11
12
# File 'lib/codes_wholesale/models/account.rb', line 6

def initialize(opts = {})
  @full_name       = opts[:fullName]
  @email           = opts[:email]
  @current_balance = opts[:currentBalance]
  @current_credit  = opts[:currentCredit]
  @total_to_use    = opts[:totalToUse]
end

Instance Attribute Details

#current_balanceObject (readonly)

Returns the value of attribute current_balance.



4
5
6
# File 'lib/codes_wholesale/models/account.rb', line 4

def current_balance
  @current_balance
end

#current_creditObject (readonly)

Returns the value of attribute current_credit.



4
5
6
# File 'lib/codes_wholesale/models/account.rb', line 4

def current_credit
  @current_credit
end

#emailObject (readonly)

Returns the value of attribute email.



4
5
6
# File 'lib/codes_wholesale/models/account.rb', line 4

def email
  @email
end

#full_nameObject (readonly)

Returns the value of attribute full_name.



4
5
6
# File 'lib/codes_wholesale/models/account.rb', line 4

def full_name
  @full_name
end

#total_to_useObject (readonly)

Returns the value of attribute total_to_use.



4
5
6
# File 'lib/codes_wholesale/models/account.rb', line 4

def total_to_use
  @total_to_use
end