Class: Citrus::Components::BackendSession

Inherits:
Component
  • Object
show all
Defined in:
lib/citrus/components/backend_session.rb

Overview

BackendSession

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ BackendSession

Initialize the component

Parameters:

  • app (Object)


24
25
26
27
28
29
# File 'lib/citrus/components/backend_session.rb', line 24

def initialize app
  @service = Common::Service::BackendSessionService.new app

  this = self
  @app.define_singleton_method :backend_session_service, proc{ this.service }
end

Instance Attribute Details

#serviceObject (readonly)

Returns the value of attribute service.



19
20
21
# File 'lib/citrus/components/backend_session.rb', line 19

def service
  @service
end