Sha256: 90f98a13d8e242964eeb3d427d87ee90a9ec7206a83a0eb081dbe0095480c3fa

Contents?: true

Size: 664 Bytes

Versions: 1

Compression:

Stored size: 664 Bytes

Contents

#
# tracking_summary.rb
# ConstantContact
#
# Copyright (c) 2013 Constant Contact. All rights reserved.

module ConstantContact
	module Components
		class TrackingSummary < Component
			attr_accessor :sends, :opens, :clicks, :forwards, :unsubscribes, :bounces, :contact_id


			# Factory method to create a TrackingSummary object from an array
			# @param [Hash] props - array of properties to create object from
			# @return [TrackingSummary]
			def self.create(props)
				tracking_summary = TrackingSummary.new
				if props
					props.each do |key, value|
						tracking_summary.send("#{key}=", value)
					end
				end
				tracking_summary
			end

		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
constantcontact-1.0.0 lib/constantcontact/components/tracking/tracking_summary.rb