module Reuters
Ruby Gem for interacting with the Thomson Reuters
Knowledge Direct API.
@example Configuring the Reuters
Gem.
Reuters.configure do |config| config.credentials do |login| # Set username login.username = "my_username" # Set my password login.password = "my_super_secret_password" # Set application ID login.application_id = "application_id" end end
Ruby Gem for interacting with the Thomson Reuters
Knowledge Direct API.
Constants
- VERSION
Current version of the
Reuters
gem.
Public Class Methods
configure() { |self| ... }
click to toggle source
Helper to configure the Reuters
gem.
@yield [Reuters] Yields the {Reuters} module.
# File lib/reuters.rb, line 85 def self.configure yield self end
credentials(&block)
click to toggle source
Yield the {Reuters::Credentials} class as a configurable block. This block helps clients to set their credentials easily.
@yield [Reuters::Credentials] Yields the {Credentials} module.
# File lib/reuters.rb, line 94 def self.credentials(&block) self::Credentials.configure(&block) end
reuters_acronyms=(val)
click to toggle source
# File lib/reuters.rb, line 72 def self.reuters_acronyms=(val) ActiveSupport::Inflector.inflections do |i| val.each { |v| i.acronym v } end end