Sha256: e6e52baf2793be63d7a33c74993a8fe6137bafaf85e7b62102c06f871b5f16f4
Contents?: true
Size: 683 Bytes
Versions: 5
Compression:
Stored size: 683 Bytes
Contents
module Oembedr module Configuration # Set a custom User-Agent string (default: Oembedr [Rubygem] #{version}) attr_accessor :user_agent # Select a different http library for Faraday to use (default: Typhoeus) attr_accessor :adapter # Yield self to be able to configure Oembedr # # Example: # # Oembedr.configure do |configuration| # configuration.user_agent = "MyCoolApp Oembed Client v2.51" # configuration.adapter = :excon # end def configure yield self end def user_agent @user_agent || "Oembedr Gem #{Oembedr::VERSION}" end def adapter @adapter || :typhoeus end end end
Version data entries
5 entries across 5 versions & 1 rubygems