Class: MizuhoBank::MizuhoAccount

Inherits:
Object
  • Object
show all
Defined in:
lib/mizuho_bank.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ MizuhoAccount

Returns a new instance of MizuhoAccount.



435
436
437
438
439
# File 'lib/mizuho_bank.rb', line 435

def initialize(options={})
  options.each{ |key, value|
    instance_variable_set("@#{key}", value)
  }
end

Instance Attribute Details

#cache_flowsObject

C/F明細



433
434
435
# File 'lib/mizuho_bank.rb', line 433

def cache_flows
  @cache_flows
end

#deal_typeObject

取引種類



429
430
431
# File 'lib/mizuho_bank.rb', line 429

def deal_type
  @deal_type
end

#moneyObject

残高



431
432
433
# File 'lib/mizuho_bank.rb', line 431

def money
  @money
end

#nameObject

店名



428
429
430
# File 'lib/mizuho_bank.rb', line 428

def name
  @name
end

#numberObject

口座番号



430
431
432
# File 'lib/mizuho_bank.rb', line 430

def number
  @number
end

#usable_moneyObject

お引き出し可能残高



432
433
434
# File 'lib/mizuho_bank.rb', line 432

def usable_money
  @usable_money
end

Instance Method Details

#to_sObject



441
442
443
# File 'lib/mizuho_bank.rb', line 441

def to_s
  "#<MizuhoAccount #{@name}:#{@deal_type}:#{@number} $#{@money}(#{@usable_money})>"
end