Class: ActiveXML::Collection::Query

Inherits:
ActiveXML::Collection show all
Defined in:
lib/active_xml/collection/query.rb

Constant Summary

Constants included from ActiveXML

VERSION

Instance Attribute Summary

Attributes included from ActiveXML

#path

Instance Method Summary collapse

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