Sha256: 8ce5da8e76a3e19932b1461042a8272de937cf1054c1818448a04bdaffcc128c
Contents?: true
Size: 791 Bytes
Versions: 15
Compression:
Stored size: 791 Bytes
Contents
# # tracking_activity.rb # ConstantContact # # Copyright (c) 2013 Constant Contact. All rights reserved. module ConstantContact module Components class TrackingActivity < Component attr_accessor :results, :next # Constructor to create a TrackingActivity from the results/pagination response from getting a set of activities # @param [Array] results - results array from a tracking endpoint # @param [Hash] pagination - pagination hash returned from a tracking endpoint # @return [TrackingActivity] def initialize(results, pagination) @results = results if (pagination.has_key?('next')) @next = pagination['next'][pagination['next'].index('&next=') + 6, pagination['next'].length] end end end end end
Version data entries
15 entries across 15 versions & 2 rubygems