Class: Filemaker::Api::QueryCommands::CompoundFind

Inherits:
Object
  • Object
show all
Defined in:
lib/filemaker/api/query_commands/findquery.rb

Overview

Convenient compound find query builder

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(query) ⇒ CompoundFind

Returns a new instance of CompoundFind.



40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/filemaker/api/query_commands/findquery.rb', line 40

def initialize(query)
  @query = query
  @key_values = {}
  @key_maps = []
  @key_maps_string = ''
  @counter = 0

  become_array(@query).each do |hash|
    build_key_map(build_key_values(hash))
  end

  translate_key_maps
end

Instance Attribute Details

#key_maps_stringObject (readonly)

Returns the value of attribute key_maps_string.



38
39
40
# File 'lib/filemaker/api/query_commands/findquery.rb', line 38

def key_maps_string
  @key_maps_string
end

#key_valuesObject (readonly)

Returns the value of attribute key_values.



38
39
40
# File 'lib/filemaker/api/query_commands/findquery.rb', line 38

def key_values
  @key_values
end

Instance Method Details

#to_sObject



54
55
56
# File 'lib/filemaker/api/query_commands/findquery.rb', line 54

def to_s
  "#{key_values}, #{key_maps_string}"
end