Module: Adcloud

Includes:
ActiveSupport::Configurable
Defined in:
lib/adcloud.rb,
lib/adcloud/topic.rb,
lib/adcloud/entity.rb,
lib/adcloud/report.rb,
lib/adcloud/product.rb,
lib/adcloud/version.rb,
lib/adcloud/webhook.rb,
lib/adcloud/campaign.rb,
lib/adcloud/customer.rb,
lib/adcloud/api_error.rb,
lib/adcloud/connection.rb,
lib/adcloud/media_file.rb,
lib/adcloud/report_entry.rb,
lib/adcloud/advertisement.rb,
lib/adcloud/webhook_event.rb,
lib/adcloud/authentication.rb,
lib/adcloud/topic_discount.rb,
lib/adcloud/webhook_config.rb,
lib/adcloud/exception_raiser.rb,
lib/adcloud/response_error_handler.rb,
lib/adcloud/campaign_performance_data.rb,
lib/adcloud/campaign_performance_data_entry.rb

Defined Under Namespace

Modules: AdcloudUnknownAPIError Classes: Advertisement, ApiError, Authentication, AuthenticationError, BadRequestError, Campaign, CampaignPerformanceData, CampaignPerformanceDataEntry, Connection, Customer, Entity, ExceptionRaiser, MediaFile, NotFoundError, Product, Report, ReportEntry, ResponseErrorHandler, ServerError, Topic, TopicDiscount, Unauthorized, Webhook, WebhookConfig, WebhookEvent

Constant Summary collapse

VERSION =
'0.7.6.0'

Class Method Summary collapse

Class Method Details

.loggerObject

Access the logger instance



42
43
44
# File 'lib/adcloud.rb', line 42

def logger
  @@logger ||= (defined?(Rails) && Rails.logger) || Adcloud.config.logger || Logger.new(STDOUT)
end

.logger=(input) ⇒ Object

Allow to override the logger



47
48
49
# File 'lib/adcloud.rb', line 47

def logger=(input)
  @@logger = input
end