module Opera::MobileStoreSDK
Constants
- VERSION
Public Class Methods
config()
click to toggle source
# File lib/opera-mobile-store-sdk.rb, line 37 def self.config @config ||= Opera::MobileStoreSDK::Config.new end
connection()
click to toggle source
# File lib/opera-mobile-store-sdk.rb, line 52 def self.connection @connection ||= Faraday.new(url: Opera::MobileStoreSDK.config.api_host) do |faraday| faraday.response :logger # log requests to STDOUT faraday.use MobileStoreSDK::FaradayMiddleware::RequiredResponseFormat faraday.use MobileStoreSDK::FaradayMiddleware::Authentication, MobileStoreSDK.config.username, MobileStoreSDK.config.password, authentication: MobileStoreSDK.config.authentication faraday.use MobileStoreSDK::FaradayMiddleware::ResponseParser faraday.use MobileStoreSDK::FaradayMiddleware::SDKBenchmark if defined?(Patron) faraday.adapter :patron else faraday.adapter Faraday.default_adapter # make requests with Net::HTTP end end end
html_entities()
click to toggle source
# File lib/opera-mobile-store-sdk.rb, line 45 def self.html_entities @html_entities ||= begin require 'htmlentities' HTMLEntities.new end end
logger()
click to toggle source
# File lib/opera-mobile-store-sdk.rb, line 41 def self.logger config.logger end