Class: CodesWholesale::Models::Account
- Inherits:
-
Object
- Object
- CodesWholesale::Models::Account
- Defined in:
- lib/codes_wholesale/models/account.rb
Instance Attribute Summary collapse
-
#current_balance ⇒ Object
readonly
Returns the value of attribute current_balance.
-
#current_credit ⇒ Object
readonly
Returns the value of attribute current_credit.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#full_name ⇒ Object
readonly
Returns the value of attribute full_name.
-
#total_to_use ⇒ Object
readonly
Returns the value of attribute total_to_use.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Account
constructor
A new instance of Account.
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_balance ⇒ Object (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_credit ⇒ Object (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 |
#email ⇒ Object (readonly)
Returns the value of attribute email.
4 5 6 |
# File 'lib/codes_wholesale/models/account.rb', line 4 def email @email end |
#full_name ⇒ Object (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_use ⇒ Object (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 |