class Praxis::Mapper::SelectorGenerator
Generates a set of selectors given a resource and list of resource attributes.
Attributes
root[R]
Public Instance Methods
add(resource, fields)
click to toggle source
Entry point
# File lib/praxis/mapper/selector_generator.rb, line 313 def add(resource, fields) @root = SelectorGeneratorNode.new(resource) @root.add(fields) self end
inspect()
click to toggle source
# File lib/praxis/mapper/selector_generator.rb, line 323 def inspect "#<#{self.class} @resource=#{@resource.name.inspect} @select=#{@select.inspect} @select_star=#{@select_star.inspect} @tracking.keys=#{@tracks.keys} (recursion omitted)>" end
selectors()
click to toggle source
# File lib/praxis/mapper/selector_generator.rb, line 319 def selectors @root end