Module: Liberic
- Extended by:
- Liberic
- Included in:
- Liberic
- Defined in:
- lib/liberic.rb,
lib/liberic/boot.rb,
lib/liberic/config.rb,
lib/liberic/process.rb,
lib/liberic/sdk/api.rb,
lib/liberic/sdk/def.rb,
lib/liberic/version.rb,
lib/liberic/sdk/types.rb,
lib/liberic/certificate.rb,
lib/liberic/response/errors.rb,
lib/liberic/sdk/fehlercodes.rb,
lib/liberic/response/version.rb,
lib/liberic/sdk/configuration.rb,
lib/liberic/helpers/invocation.rb
Defined Under Namespace
Modules: Helpers, Response, SDK
Classes: Certificate, Config, InitializationError, PinFeatures, Process
Constant Summary
collapse
- ERIC_HOME =
ENV['ERIC_HOME_39'] || raise(InitializationError.new('ERIC_HOME_39 environment variable not found (set it to the path to the ERiC libraries)'))
- ERIC_LIB_FOLDER =
File.expand_path('lib', ERIC_HOME)
- VERSION =
'1.2.0'
Instance Method Summary
collapse
Instance Method Details
#check_eric_version! ⇒ Object
#config ⇒ Object
18
19
20
|
# File 'lib/liberic.rb', line 18
def config
@config ||= Config.new
end
|
#eric_home ⇒ Object
7
8
9
|
# File 'lib/liberic/boot.rb', line 7
def eric_home
ERIC_HOME
end
|
#library_path ⇒ Object
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/liberic/boot.rb', line 11
def library_path
suffix = if RUBY_PLATFORM =~ /linux/
'so'
elsif RUBY_PLATFORM =~ /darwin/
'dylib'
else
'dll'
end
File.expand_path("libericapi.#{suffix}", ERIC_LIB_FOLDER)
end
|