Class: LloydsTSB::Account

Inherits:
Object show all
Defined in:
lib/lloydstsb/account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#balanceObject

Returns the value of attribute balance.



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

def balance
  @balance
end

#detailsObject

Returns the value of attribute details.



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

def details
  @details
end

#limitObject

Returns the value of attribute limit.



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

def limit
  @limit
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#transactionsObject

Returns the value of attribute transactions.



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

def transactions
  @transactions
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end