Class: Citrus::Components::BackendSession
- Defined in:
- lib/citrus/components/backend_session.rb
Overview
BackendSession
Instance Attribute Summary collapse
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Instance Method Summary collapse
-
#initialize(app) ⇒ BackendSession
constructor
Initialize the component.
Constructor Details
#initialize(app) ⇒ BackendSession
Initialize the component
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
#service ⇒ Object (readonly)
Returns the value of attribute service.
19 20 21 |
# File 'lib/citrus/components/backend_session.rb', line 19 def service @service end |