Class: ActiveXML::Collection::Query
- Inherits:
-
ActiveXML::Collection
- Object
- ActiveXML::Collection
- ActiveXML::Collection::Query
- Defined in:
- lib/active_xml/collection/query.rb
Constant Summary
Constants included from ActiveXML
Instance Attribute Summary
Attributes included from ActiveXML
Instance Method Summary collapse
-
#initialize(path, where_values) ⇒ Query
constructor
A new instance of Query.
Methods inherited from ActiveXML::Collection
#delete_nodes, #pluck, #split, #split_to_array, #where
Methods included from ActiveXML
#delete_node, #save, #set_root!, #xml
Constructor Details
#initialize(path, where_values) ⇒ Query
Returns a new instance of Query.
4 5 6 7 8 |
# File 'lib/active_xml/collection/query.rb', line 4 def initialize(path, where_values) super(path) @where_key = where_values.keys.first @where_value = where_values.values.first end |