Class: DeGiro::Client

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/degiro/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(login:, password:) ⇒ Client

Returns a new instance of Client.



24
25
26
27
28
29
30
31
32
33
34
# File 'lib/degiro/client.rb', line 24

def initialize(login:, password:)
  connection = Connection.new(, password)

  @create_order       = CreateOrder.new(connection)
  @find_product_by_id = FindProductById.new(connection)
  @find_products      = FindProducts.new(connection)
  @get_cash_funds     = GetCashFunds.new(connection)
  @get_orders         = GetOrders.new(connection)
  @get_portfolio      = GetPortfolio.new(connection)
  @get_transactions   = GetTransactions.new(connection)
end