Sha256: 308acf0295a99cd01cf9d4566c0955f38d74988f5ba314f33f629cf7d282059b

Contents?: true

Size: 693 Bytes

Versions: 1

Compression:

Stored size: 693 Bytes

Contents

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

module ConstantContact
  module Components
    class OpenActivity < Component
      attr_accessor :activity_type, :campaign_id, :email_address, :open_date, :contact_id


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

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
constantcontact-1.0.1 lib/constantcontact/components/tracking/open_activity.rb