Class: Hecks::QuerySpecification::ReadModel::Specification
- Inherits:
-
Common::Options
- Object
- Common::Options
- Hecks::QuerySpecification::ReadModel::Specification
- Defined in:
- lib/hecks/query_specification/read_model/specification.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#joins ⇒ Object
readonly
Returns the value of attribute joins.
Attributes inherited from Common::Options
#authorization, #cursor, #inspection, #limit, #null_semantics, #offset, #order_by, #wheres
Instance Method Summary collapse
-
#initialize(joins: [], **options) ⇒ Specification
constructor
A new instance of Specification.
- #to_h ⇒ Object
Methods inherited from Common::Options
#extra_options_to_h, #options_to_h
Constructor Details
#initialize(joins: [], **options) ⇒ Specification
Returns a new instance of Specification.
9 10 11 12 |
# File 'lib/hecks/query_specification/read_model/specification.rb', line 9 def initialize(joins: [], **) super(**) @joins = joins end |
Instance Attribute Details
#joins ⇒ Object (readonly)
Returns the value of attribute joins.
7 8 9 |
# File 'lib/hecks/query_specification/read_model/specification.rb', line 7 def joins @joins end |
Instance Method Details
#to_h ⇒ Object
14 |
# File 'lib/hecks/query_specification/read_model/specification.rb', line 14 def to_h = .merge(joins: @joins) |