Module: Jirafe

Defined in:
lib/jirafe.rb,
lib/jirafe/asset.rb,
lib/jirafe/error.rb,
lib/jirafe/model.rb,
lib/jirafe/locales.rb,
lib/jirafe/tracker.rb,
lib/jirafe/version.rb,
lib/jirafe/dashboard.rb,
lib/jirafe/data_helper.rb,
lib/jirafe/configuration.rb,
lib/jirafe/resource/cart.rb,
lib/jirafe/resource/site.rb,
lib/jirafe/resource/user.rb,
lib/jirafe/callback/event.rb,
lib/jirafe/resource/status.rb,
lib/jirafe/response_parser.rb,
lib/jirafe/resource/version.rb,
lib/jirafe/resource/resources.rb,
lib/jirafe/resource/carts/item.rb,
lib/jirafe/callback/events/item.rb,
lib/jirafe/resource/application.rb,
lib/jirafe/resource/time_series.rb,
lib/jirafe/callback/events/order.rb,
lib/jirafe/resource/sites/visits.rb,
lib/jirafe/callback/events/refund.rb,
lib/jirafe/resource/sites/origins.rb,
lib/jirafe/resource/sites/keywords.rb,
lib/jirafe/resource/sites/products.rb,
lib/jirafe/resource/sites/referers.rb,
lib/jirafe/resource/sites/revenues.rb,
lib/jirafe/callback/jirafe_callback.rb,
lib/jirafe/resource/jirafe_resource.rb,
lib/jirafe/resource/legacy_resource.rb,
lib/jirafe/resource/sites/customers.rb,
lib/jirafe/resource/sites/dashboard.rb,
lib/jirafe/resource/sites/conversions.rb,
lib/jirafe/resource/sites/period_data.rb,
lib/jirafe/resource/sites/total_carts.rb,
lib/jirafe/resource/sites/abandon_rate.rb,
lib/jirafe/resource/sites/bounces_rate.rb,
lib/jirafe/resource/sites/translations.rb,
lib/jirafe/resource/sites/orders_status.rb,
lib/jirafe/resource/sites/segments_carts.rb,
lib/jirafe/resource/sites/segments_sales.rb,
lib/jirafe/resource/sites/abandoned_carts.rb,
lib/jirafe/resource/sites/conversion_rate.rb,
lib/jirafe/resource/sites/revenues_average.rb,
lib/jirafe/resource/sites/abandoned_revenue.rb,
lib/jirafe/resource/sites/cart_segmentation.rb,
lib/jirafe/resource/sites/visitors_interest.rb,
lib/jirafe/resource/sites/average_order_value.rb,
lib/jirafe/resource/sites/abandoned_average_order_value.rb

Defined Under Namespace

Modules: Callback, DataHelper, Error, Model, Resource, ResponseParser Classes: Asset, Configuration, Dashboard, Tracker

Constant Summary collapse

LOCALES =
{
  :english => 'en_US',
  :french => 'fr_FR',
  :german => 'de_DE',
  :japanese => 'ja_JA'
}
VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.configObject



82
83
84
# File 'lib/jirafe.rb', line 82

def self.config
  Configuration.instance
end

.configure {|Configuration.instance| ... } ⇒ Object

Yields:



77
78
79
80
# File 'lib/jirafe.rb', line 77

def self.configure
  yield Configuration.instance if block_given?
  logger.info "Initialized Jirafe Client to api: #{config.url} / callbacks: #{config.callback_url}"
end

.loggerObject



86
87
88
# File 'lib/jirafe.rb', line 86

def self.logger
  config.logger
end