Module: Esse::Jbuilder::SearchQuery::InstanceMethods
- Defined in:
- lib/esse/jbuilder/search_query.rb
Instance Method Summary collapse
Instance Method Details
#initialize(transport, *indices, suffix: nil, **definition, &block) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/esse/jbuilder/search_query.rb', line 7 def initialize(transport, *indices, suffix: nil, **definition, &block) super(transport, *indices, suffix: suffix, **definition) if block @definition[:body] ||= {} attrs = render_jbuilder_template(&block) @definition[:body].merge! Esse::HashUtils.deep_transform_keys(attrs, &:to_sym) end end |