Class: Ebics::Hbb

Inherits:
Client show all
Defined in:
lib/ebics/hbb.rb

Constant Summary

Constants inherited from Client

Client::BANK_NAME, Client::URL_EBICS_SERVER

Instance Attribute Summary

Attributes inherited from Client

#banks, #conf, #partners, #users

Instance Method Summary collapse

Methods inherited from Client

#create_bank, #create_partner, #create_user_directories, #initialize, #load_user, #log, #messages, #require_product, #require_user, #require_user_and_product, #t

Constructor Details

This class inherits a constructor from Ebics::Client

Instance Method Details

#download_certificates(user, product) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/ebics/hbb.rb', line 4

def download_certificates(user, product)
  session = Java::OrgKopiEbicsSession.EbicsSession.new(user, conf)
  session.product = product
  keymanager = Java::OrgKopiEbicsClient.KeyManagement.new(session)
  conf.trace_manager.trace_directory = conf.get_transfer_trace_directory(user)
  keymanager.sendHPB
end

#run(options) ⇒ Object



12
13
14
15
# File 'lib/ebics/hbb.rb', line 12

def run(options)
  require_user_and_product(options)
  download_certificates(@user, @product)
end