Module: Railjet::Repository
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/railjet/repository.rb,
lib/railjet/repository/cupido.rb,
lib/railjet/repository/registry.rb,
lib/railjet/repository/active_record.rb
Defined Under Namespace
Modules: ActiveRecord, Cupido Classes: Registry
Instance Attribute Summary collapse
-
#cupido_dao ⇒ Object
readonly
Returns the value of attribute cupido_dao.
-
#record_dao ⇒ Object
readonly
Returns the value of attribute record_dao.
-
#registry ⇒ Object
readonly
Returns the value of attribute registry.
Instance Method Summary collapse
Instance Attribute Details
#cupido_dao ⇒ Object (readonly)
Returns the value of attribute cupido_dao.
11 12 13 |
# File 'lib/railjet/repository.rb', line 11 def cupido_dao @cupido_dao end |
#record_dao ⇒ Object (readonly)
Returns the value of attribute record_dao.
11 12 13 |
# File 'lib/railjet/repository.rb', line 11 def record_dao @record_dao end |
#registry ⇒ Object (readonly)
Returns the value of attribute registry.
8 9 10 |
# File 'lib/railjet/repository.rb', line 8 def registry @registry end |
Instance Method Details
#initialize(registry, record: nil, cupido: nil) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/railjet/repository.rb', line 13 def initialize(registry, record: nil, cupido: nil) @registry = registry @record_dao = record @cupido_dao = cupido end |