module Agris
Constants
- Context
- USER_AGENT
- VERSION
Attributes
context[RW]
credentials[RW]
log_level[RW]
logger[RW]
proxy_url[RW]
request_type[RW]
user_agent[RW]
Public Class Methods
configure() { |self| ... }
click to toggle source
“`ruby Agris.configure
do |config|
config.credentials = Agris::Credentials::Anonymous.new config.context = Agris::Context.new( 'http://localhost:3000', '001', '\\host\apps\Agris\datasets', 'AgrisDB', 'bob', 'fred' ) config.request_type = Agris::SavonRequest config.logger = Logger.new(STDOUT) config.user_agent = 'Otis'
end “` elsewhere
“`ruby client = Agris::Client.new
“`
# File lib/agris.rb, line 42 def configure yield self true end
root()
click to toggle source
# File lib/agris.rb, line 47 def root File.expand_path('..', __dir__) end