Module: Athar

Defined in:
lib/athar.rb,
lib/athar/sql.rb,
lib/athar/engine.rb,
lib/athar/context.rb,
lib/athar/version.rb,
lib/athar/deletion.rb,
lib/athar/dashboard.rb,
lib/athar/retention.rb,
lib/athar/table_event.rb,
lib/athar/actor_lookup.rb,
lib/athar/configuration.rb,
lib/athar/retention_job.rb,
lib/athar/metadata_stack.rb,
lib/athar/dashboard/sparkline.rb,
app/helpers/athar/asset_helper.rb,
lib/athar/dashboard/feed_query.rb,
lib/athar/dashboard/filter_set.rb,
lib/generators/athar/fx_helper.rb,
lib/athar/dashboard/actor_labels.rb,
lib/athar/dashboard/actor_options.rb,
lib/athar/middleware/asset_server.rb,
app/helpers/athar/dashboard_helper.rb,
lib/athar/dashboard/kpi_calculator.rb,
lib/athar/dashboard/model_registry.rb,
lib/athar/dashboard/connection_info.rb,
app/controllers/athar/themes_controller.rb,
app/helpers/athar/dashboard/cell_helper.rb,
app/helpers/athar/dashboard/icon_helper.rb,
lib/athar/dashboard/trigger_args_parser.rb,
lib/generators/athar/mask/mask_generator.rb,
app/helpers/athar/dashboard/detail_helper.rb,
app/controllers/athar/dashboard_controller.rb,
app/controllers/athar/deletions_controller.rb,
lib/generators/athar/model/model_generator.rb,
app/controllers/athar/application_controller.rb,
app/controllers/athar/table_events_controller.rb,
app/helpers/athar/dashboard/formatting_helper.rb,
app/helpers/athar/dashboard/filter_link_helper.rb,
lib/generators/athar/install/install_generator.rb

Defined Under Namespace

Modules: ActorLookup, AssetHelper, Context, Dashboard, DashboardHelper, Generators, Middleware, Retention, SQL Classes: ApplicationController, Configuration, ConfigurationError, DashboardController, Deletion, DeletionsController, Engine, Error, MetadataStack, RetentionJob, TableEvent, TableEventsController, ThemesController

Constant Summary collapse

VERSION =
"0.3.2"
DELETIONS_TABLE_NAME =
"athar_deletions"
TABLE_EVENTS_TABLE_NAME =
"athar_table_events"

Class Method Summary collapse

Class Method Details

.configurationObject



27
28
29
# File 'lib/athar.rb', line 27

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



31
32
33
# File 'lib/athar.rb', line 31

def configure
  yield(configuration)
end

.loggerObject



39
40
41
# File 'lib/athar.rb', line 39

def logger
  configuration.logger || (Rails.logger if defined?(Rails)) || Logger.new($stdout)
end

.reset_configuration!Object



35
36
37
# File 'lib/athar.rb', line 35

def reset_configuration!
  @configuration = Configuration.new
end

.with_actorObject



43
44
45
# File 'lib/athar.rb', line 43

def with_actor(...)
  Context.with_actor(...)
end

.with_contextObject



51
52
53
# File 'lib/athar.rb', line 51

def with_context(...)
  Context.with_context(...)
end

.with_metadataObject



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

def (...)
  Context.(...)
end

.without_captureObject



55
56
57
# File 'lib/athar.rb', line 55

def without_capture(...)
  Context.without_capture(...)
end