Sha256: 321a681ee595c3c78da79c2abf1477d05f3e96e92b233e09f67a189071162d31

Contents?: true

Size: 594 Bytes

Versions: 4

Compression:

Stored size: 594 Bytes

Contents

module RSqoot
  module Click

    # Retrieve a list of clicks based on the following parameters
    #
    # @param [String] :to Start date
    # @param [String] :from End date
    #
    # @return [RSqoot::SqootClick]
    def clicks(options={})
      options = update_by_expire_time options
      if clicks_not_latest?(options)
        @rsqoot_clicks = get('clicks', options, SqootClick)
        @rsqoot_clicks = @rsqoot_clicks.clicks if @rsqoot_clicks
      end
      logger({uri: sqoot_query_uri, records: @rsqoot_clicks, type: 'clicks', opts: options})
      @rsqoot_clicks
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rsqoot-0.5.5 lib/rsqoot/click.rb
rsqoot-0.5.4 lib/rsqoot/click.rb
rsqoot-0.5.3 lib/rsqoot/click.rb
rsqoot-0.5.2 lib/rsqoot/click.rb