Class: Compendium::ThroughQuery

Inherits:
Query
  • Object
show all
Defined in:
lib/compendium/through_query.rb

Instance Attribute Summary collapse

Attributes inherited from Query

#filters, #metrics, #name, #options, #proc, #report, #results

Instance Method Summary collapse

Methods inherited from Query

#add_filter, #add_metric, #chart, #empty?, #initialize_clone, #nil?, #ran?, #render_chart, #render_table, #run, #url

Constructor Details

#initialize(*args) ⇒ ThroughQuery

Returns a new instance of ThroughQuery.



7
8
9
10
11
# File 'lib/compendium/through_query.rb', line 7

def initialize(*args)
  @report = args.shift if arg_is_report?(args.first)
  @through = args.slice!(1)
  super(*args)
end

Instance Attribute Details

#throughObject

Returns the value of attribute through.



5
6
7
# File 'lib/compendium/through_query.rb', line 5

def through
  @through
end