Class: Mbanker::Session

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(crawler, authorizer) ⇒ Session

Returns a new instance of Session.



5
6
7
8
# File 'lib/mbanker/session.rb', line 5

def initialize crawler, authorizer 
  @crawler, @authorizer = crawler, authorizer 
  @persistent_crawler = Mbanker::PersistentCrawler.new @crawler, @authorizer
end

Instance Attribute Details

#crawlerObject

Returns the value of attribute crawler.



3
4
5
# File 'lib/mbanker/session.rb', line 3

def crawler
  @crawler
end

#persistent_crawlerObject

Returns the value of attribute persistent_crawler.



3
4
5
# File 'lib/mbanker/session.rb', line 3

def persistent_crawler
  @persistent_crawler
end

Instance Method Details

#accountsObject



10
11
12
13
# File 'lib/mbanker/session.rb', line 10

def accounts
  @accounts_list ||= Mbanker::AccountsList.new @persistent_crawler
  @accounts_list.accounts
end