Class: Filemaker::Api::QueryCommands::CompoundFind
- Inherits:
-
Object
- Object
- Filemaker::Api::QueryCommands::CompoundFind
- Defined in:
- lib/filemaker/api/query_commands/findquery.rb
Overview
Convenient compound find query builder
Instance Attribute Summary collapse
-
#key_maps_string ⇒ Object
readonly
Returns the value of attribute key_maps_string.
-
#key_values ⇒ Object
readonly
Returns the value of attribute key_values.
Instance Method Summary collapse
-
#initialize(query) ⇒ CompoundFind
constructor
A new instance of CompoundFind.
- #to_s ⇒ Object
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_string ⇒ Object (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_values ⇒ Object (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_s ⇒ Object
54 55 56 |
# File 'lib/filemaker/api/query_commands/findquery.rb', line 54 def to_s "#{key_values}, #{key_maps_string}" end |