Class: PlainQuery::Builder
- Inherits:
-
Module
- Object
- Module
- PlainQuery::Builder
- Defined in:
- lib/plain_query/builder.rb
Instance Attribute Summary collapse
-
#builder_options ⇒ Object
readonly
Returns the value of attribute builder_options.
Instance Method Summary collapse
- #included(klass) ⇒ Object
-
#initialize(model: nil) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(model: nil) ⇒ Builder
Returns a new instance of Builder.
12 13 14 |
# File 'lib/plain_query/builder.rb', line 12 def initialize(model: nil) @builder_options = BuilderOptions.new(model: model) end |
Instance Attribute Details
#builder_options ⇒ Object (readonly)
Returns the value of attribute builder_options.
10 11 12 |
# File 'lib/plain_query/builder.rb', line 10 def @builder_options end |
Instance Method Details
#included(klass) ⇒ Object
16 17 18 19 20 |
# File 'lib/plain_query/builder.rb', line 16 def included(klass) klass.extend() klass.extend(ClassMethods) klass.include(InstanceMethods) end |