Class: Operationable::Builder
- Inherits:
-
Object
- Object
- Operationable::Builder
- Defined in:
- lib/operationable/builder.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#record ⇒ Object
readonly
Returns the value of attribute record.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(record, user, params = {}) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(record, user, params = {}) ⇒ Builder
Returns a new instance of Builder.
6 7 8 9 10 |
# File 'lib/operationable/builder.rb', line 6 def initialize(record, user, params={}) @record = record @user = user @params = params end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
4 5 6 |
# File 'lib/operationable/builder.rb', line 4 def params @params end |
#record ⇒ Object (readonly)
Returns the value of attribute record.
4 5 6 |
# File 'lib/operationable/builder.rb', line 4 def record @record end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
4 5 6 |
# File 'lib/operationable/builder.rb', line 4 def user @user end |
Instance Method Details
#build ⇒ Object
12 13 14 |
# File 'lib/operationable/builder.rb', line 12 def build record end |