Method: Azure::Table::Query#initialize

Defined in:
lib/azure/table/query.rb

#initialize(table = "", partition = nil, row = nil, &block) ⇒ Query

Returns a new instance of Query.



21
22
23
24
25
26
27
28
29
30
# File 'lib/azure/table/query.rb', line 21

def initialize(table="", partition=nil, row=nil, &block)
  @table = table
  @partition_key = partition
  @row_key = row
  @fields = []
  @filters = []
  @top_n = nil
  @table_service = Azure::Table::TableService.new
  self.instance_eval(&block) if block_given?
end