Module: DaedalSL

Defined in:
lib/daedal-sl.rb,
lib/daedal-sl/builder.rb,
lib/daedal-sl/version.rb,
lib/daedal-sl/or_filter.rb,
lib/daedal-sl/and_filter.rb,
lib/daedal-sl/bool_query.rb,
lib/daedal-sl/block_query.rb,
lib/daedal-sl/bool_filter.rb,
lib/daedal-sl/dis_max_query.rb,
lib/daedal-sl/query_helpers.rb,
lib/daedal-sl/nested_bool_query.rb,
lib/daedal-sl/nested_bool_filter.rb,
lib/daedal-sl/nested_dis_max_query.rb

Defined Under Namespace

Modules: QueryHelpers Classes: AndFilter, BlockQuery, BoolFilter, BoolQuery, Builder, DisMaxQuery, NestedBoolFilter, NestedBoolQuery, NestedDisMaxQuery, OrFilter

Constant Summary collapse

VERSION =
'0.0.1'

Class Method Summary collapse

Class Method Details

.build(data = nil, &block) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/daedal-sl.rb', line 18

def build(data=nil, &block)
  result = DaedalSL::Builder.new(data)
  if block
    result.instance_eval(&block)
  end
  result.to_hash
end