Class: ActiverecordReadonly::Current
- Inherits:
-
Object
- Object
- ActiverecordReadonly::Current
- Defined in:
- lib/activerecord_readonly/current.rb
Instance Attribute Summary collapse
-
#be_readonly ⇒ Object
readonly
Returns the value of attribute be_readonly.
-
#excepts ⇒ Object
readonly
Returns the value of attribute excepts.
-
#only ⇒ Object
readonly
Returns the value of attribute only.
Instance Method Summary collapse
-
#initialize(be_readonly, excepts = [], only = []) ⇒ Current
constructor
A new instance of Current.
Constructor Details
#initialize(be_readonly, excepts = [], only = []) ⇒ Current
Returns a new instance of Current.
9 10 11 12 13 |
# File 'lib/activerecord_readonly/current.rb', line 9 def initialize(be_readonly, excepts = [], only = []) @be_readonly = be_readonly @excepts = excepts @only = only end |
Instance Attribute Details
#be_readonly ⇒ Object (readonly)
Returns the value of attribute be_readonly.
5 6 7 |
# File 'lib/activerecord_readonly/current.rb', line 5 def be_readonly @be_readonly end |
#excepts ⇒ Object (readonly)
Returns the value of attribute excepts.
6 7 8 |
# File 'lib/activerecord_readonly/current.rb', line 6 def excepts @excepts end |
#only ⇒ Object (readonly)
Returns the value of attribute only.
7 8 9 |
# File 'lib/activerecord_readonly/current.rb', line 7 def only @only end |