Sha256: e94f547fa2300182b9067a71f7d977db1f61706dd285e2262a261a9ad06678b0
Contents?: true
Size: 1.09 KB
Versions: 6
Compression:
Stored size: 1.09 KB
Contents
# Configuration class that stores configuration options for the Yummly API. # # Yummly requires an App ID and APP key combination to authenticate against its API. At the very least these must be # supplied in the configuration. # # Additionally for certain paid plans Yummly offers SSL API access, so setting the configuration option use_ssl to true # will send all API calls over HTTPS. This options defaults to false. # # Configuration options are typically set via the Yummly.config method. # @see Yummly.configure # @example # Yummly.configure do |config| # config.app_id = "12345" # config.app_key = "XXXXXXXXXXXXXXXXXXXXXXXX" # end module Yummly class Configuration attr_accessor :app_key, :app_id, :use_ssl # Creates a configuration object, defaulting use_ssl to false. def initialize @use_ssl = false end # Returns true if API calls to Yummly should use SSL. # # @return [Boolean] true if API calls to Yummly should use SSL # @example # Yummly.configuration.use_ssl? def use_ssl? use_ssl end end end
Version data entries
6 entries across 6 versions & 1 rubygems