Class: Ibrain::BaseRepository

Inherits:
Object
  • Object
show all
Defined in:
app/repositories/ibrain/base_repository.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_userObject (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

#recordObject (readonly)

Returns the value of attribute record.



10
11
12
# File 'app/repositories/ibrain/base_repository.rb', line 10

def record
  @record
end