module Frodo
The Frodo
gem provides a convenient way to interact with OData V4 services from Ruby. Please look to the {file:README.md README} for how to get started using the Frodo
gem.
Constants
- APIVersionError
- AuthenticationError
- Error
- ServerError
- VERSION
Attributes
log[W]
Public Class Methods
configuration()
click to toggle source
Returns the current Configuration
Example
Frodo.configuration.username = "username" Frodo.configuration.password = "password"
# File lib/frodo/config.rb, line 15 def configuration @configuration ||= Configuration.new end
configure() { |configuration| ... }
click to toggle source
Yields the Configuration
Example
Frodo.configure do |config| config.username = "username" config.password = "password" end
# File lib/frodo/config.rb, line 27 def configure yield configuration end
log(message)
click to toggle source
# File lib/frodo/config.rb, line 35 def log(message) return unless Frodo.log? configuration.logger.send(configuration.log_level, message) end
log?()
click to toggle source
# File lib/frodo/config.rb, line 31 def log? @log ||= false end
new(*args, &block)
click to toggle source
# File lib/frodo.rb, line 62 def new(*args, &block) Frodo::Client.new(*args, &block) end