Class: Mbanker::Session
- Inherits:
-
Object
- Object
- Mbanker::Session
- Defined in:
- lib/mbanker/session.rb
Instance Attribute Summary collapse
-
#crawler ⇒ Object
Returns the value of attribute crawler.
-
#persistent_crawler ⇒ Object
Returns the value of attribute persistent_crawler.
Instance Method Summary collapse
- #accounts ⇒ Object
-
#initialize(crawler, authorizer) ⇒ Session
constructor
A new instance of Session.
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, @crawler, @authorizer = crawler, @persistent_crawler = Mbanker::PersistentCrawler.new @crawler, @authorizer end |
Instance Attribute Details
#crawler ⇒ Object
Returns the value of attribute crawler.
3 4 5 |
# File 'lib/mbanker/session.rb', line 3 def crawler @crawler end |
#persistent_crawler ⇒ Object
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
#accounts ⇒ Object
10 11 12 13 |
# File 'lib/mbanker/session.rb', line 10 def accounts @accounts_list ||= Mbanker::AccountsList.new @persistent_crawler @accounts_list.accounts end |