Module: DolphinKit
- Defined in:
- lib/dolphin_kit.rb,
lib/dolphin_kit/service.rb,
lib/dolphin_kit/version.rb,
lib/dolphin_kit/services/baidu_service.rb,
lib/dolphin_kit/services/qcloud_service.rb,
lib/dolphin_kit/services/youdao_service.rb
Defined Under Namespace
Classes: BaiduService, QCloudService, Service, YoudaoService
Constant Summary collapse
- VERSION =
'1.0.2'
Class Method Summary collapse
Class Method Details
.create_service(name, **args) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/dolphin_kit.rb', line 13 def create_service(name, **args) if args.empty? args[:api_key] = ENV["#{name}_FANYI_API_KEY".upcase].to_s end Service.new(name, **args) end |