~tim/wuparty

13e39de314ad3d88427b86df79b778ac72a2f682 — Tim Morgan 7 years ago a941b88 + e443fd3
Merge pull request #12 from delianides/master

Added option to include system fields
1 files changed, 9 insertions(+), 0 deletions(-)

M lib/wuparty.rb
M lib/wuparty.rb => lib/wuparty.rb +9 -0
@@ 303,6 303,10 @@ class WuParty
        query[:pageStart] = 0
      end

      if options[:system]
        query[:system] = true
      end

      if options[:sort]
        field, direction = options[:sort].split(' ')
        query[:sort] = field


@@ 328,6 332,11 @@ class WuParty
          query["Filter#{ index + 1 }"] = filter.join(' ')
        end
      end   

      if options[:system]
        query[:system] = true
      end

      @party.get("forms/#{@id}/entries/count", :query => query)['EntryCount']
    end