Sha256: 82f954df9df2c19dd38d8ecb3e73136b9332de3307cfd25cc2c1f599d1a2f213
Contents?: true
Size: 694 Bytes
Versions: 14
Compression:
Stored size: 694 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, :spam_count # Factory method to create a TrackingSummary object from an array # @param [Hash] props - properties to create object from # @return [TrackingSummary] def self.create(props) obj = TrackingSummary.new if props props.each do |key, value| obj.send("#{key}=", value) if obj.respond_to? key end end obj end end end end
Version data entries
14 entries across 14 versions & 2 rubygems