Sha256: f2d09d2ab4da3ade7ed60a5723696f7c3d6fcf8c3d884feda087ccc84215e345

Contents?: true

Size: 720 Bytes

Versions: 1

Compression:

Stored size: 720 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.1 lib/constantcontact/components/tracking/tracking_summary.rb