Module: Em::Nordnet

Defined in:
lib/em-nordnet.rb,
lib/em-nordnet/api.rb,
lib/em-nordnet/order.rb,
lib/em-nordnet/config.rb,
lib/em-nordnet/account.rb,
lib/em-nordnet/version.rb,
lib/em-nordnet/feed/dsl.rb,
lib/em-nordnet/instrument.rb,
lib/em-nordnet/feed/public.rb,
lib/em-nordnet/feed/private.rb,
lib/em-nordnet/feed/connection.rb

Defined Under Namespace

Modules: Feed, Goliath Classes: Account, Api, Config, Instrument, Order

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.apiObject



19
20
21
# File 'lib/em-nordnet.rb', line 19

def api
  @@api ||= Nordnet::Api.new
end

.configObject



15
16
17
# File 'lib/em-nordnet.rb', line 15

def config
  @@config ||= Nordnet::Config.new
end

.configure {|config| ... } ⇒ Object

Yields:



11
12
13
# File 'lib/em-nordnet.rb', line 11

def configure &block
  yield(config) if block_given?
end