Class: Hecks::QuerySpecification::ReadModel::Specification

Inherits:
Common::Options
  • Object
show all
Defined in:
lib/hecks/query_specification/read_model/specification.rb

Direct Known Subclasses

Bluebook::ReadModel

Instance Attribute Summary collapse

Attributes inherited from Common::Options

#authorization, #cursor, #inspection, #limit, #null_semantics, #offset, #order_by, #wheres

Instance Method Summary collapse

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: [], **options)
  super(**options)
  @joins = joins
end

Instance Attribute Details

#joinsObject (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_hObject



14
# File 'lib/hecks/query_specification/read_model/specification.rb', line 14

def to_h = options_to_h.merge(joins: @joins)