Class: LloydsTSB::Account
Instance Attribute Summary collapse
-
#balance ⇒ Object
Returns the value of attribute balance.
-
#details ⇒ Object
Returns the value of attribute details.
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#name ⇒ Object
Returns the value of attribute name.
-
#transactions ⇒ Object
Returns the value of attribute transactions.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ Account
constructor
A new instance of Account.
Constructor Details
#initialize(hash = {}) ⇒ Account
Returns a new instance of Account.
5 6 7 |
# File 'lib/lloydstsb/account.rb', line 5 def initialize(hash = {}) hash.each { |key,val| send("#{key}=", val) if respond_to?("#{key}=") } end |
Instance Attribute Details
#balance ⇒ Object
Returns the value of attribute balance.
3 4 5 |
# File 'lib/lloydstsb/account.rb', line 3 def balance @balance end |
#details ⇒ Object
Returns the value of attribute details.
3 4 5 |
# File 'lib/lloydstsb/account.rb', line 3 def details @details end |
#limit ⇒ Object
Returns the value of attribute limit.
3 4 5 |
# File 'lib/lloydstsb/account.rb', line 3 def limit @limit end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/lloydstsb/account.rb', line 3 def name @name end |
#transactions ⇒ Object
Returns the value of attribute transactions.
3 4 5 |
# File 'lib/lloydstsb/account.rb', line 3 def transactions @transactions end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/lloydstsb/account.rb', line 3 def type @type end |