Class: App
- Inherits:
-
Object
- Object
- App
- Defined in:
- bin/ifin24
Instance Method Summary collapse
-
#initialize(arguments) ⇒ App
constructor
A new instance of App.
- #run ⇒ Object
Constructor Details
#initialize(arguments) ⇒ App
Returns a new instance of App.
16 17 18 19 20 21 22 23 |
# File 'bin/ifin24', line 16 def initialize(arguments) @arguments = arguments # Set defaults = OpenStruct.new .verbose = false .quiet = false end |
Instance Method Details
#run ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'bin/ifin24', line 25 def run config = Ifin24::Configuration.instance login = .login || config[:login] password = .password || config[:password] client = Ifin24::Client.new(login, password) if client.logged? console = Ifin24::Console.new(client) console. else puts "Bad login or password." end end |