Attributes
name | [R] |
Public class methods
collection
(xml, options = {})
[show source]
# File lib/wac/pod.rb, line 76 def self.collection(xml, options = {}) Nokogiri::XML(xml.to_s).search('state').map {|s_xml| new(s_xml['name'], options)} end
new
(name, options = {})
[show source]
# File lib/wac/pod.rb, line 80 def initialize(name, options = {}) @query = options[:query] @name = name end
Public instance methods
refetch
()
refetch using this state
[show source]
# File lib/wac/pod.rb, line 109 def refetch requery.fetch end
requery
()
create a new query using this state
[show source]
# File lib/wac/pod.rb, line 98 def requery if podstate = @query.query_options[:podstate] podstate = State.new("#{podstate.name},#{name}", :query => @query) else podstate = self end Query.new(@query.input, @query.options.merge(:session => @query.session, :podstate => podstate)) end
to_query
(key)
[show source]
# File lib/wac/pod.rb, line 85 def to_query(key) name.to_query(key) end