Class: Ibrain::BaseRepository
- Inherits:
-
Object
- Object
- Ibrain::BaseRepository
- Defined in:
- app/repositories/ibrain/base_repository.rb
Instance Attribute Summary collapse
-
#current_user ⇒ Object
readonly
Returns the value of attribute current_user.
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(current_user, record) ⇒ BaseRepository
constructor
A new instance of BaseRepository.
Constructor Details
#initialize(current_user, record) ⇒ BaseRepository
Returns a new instance of BaseRepository.
5 6 7 8 |
# File 'app/repositories/ibrain/base_repository.rb', line 5 def initialize(current_user, record) @current_user = current_user @record = record end |
Instance Attribute Details
#current_user ⇒ Object (readonly)
Returns the value of attribute current_user.
10 11 12 |
# File 'app/repositories/ibrain/base_repository.rb', line 10 def current_user @current_user end |
#record ⇒ Object (readonly)
Returns the value of attribute record.
10 11 12 |
# File 'app/repositories/ibrain/base_repository.rb', line 10 def record @record end |