Sha256: 1c91899b58993ac1ee91b0f5a173f99534637297d6255782fe832a5270922e08

Contents?: true

Size: 676 Bytes

Versions: 14

Compression:

Stored size: 676 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 - properties to create object from
      # @return [OpenActivity]
      def self.create(props)
        obj = OpenActivity.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

Version Path
constantcontact-4.0.0 lib/constantcontact/components/tracking/open_activity.rb
constantcontact-3.0.0 lib/constantcontact/components/tracking/open_activity.rb
constantcontact-2.2.1 lib/constantcontact/components/tracking/open_activity.rb
constantcontact-ruby-2.2.1 lib/constantcontact/components/tracking/open_activity.rb
constantcontact-ruby-2.2.0 lib/constantcontact/components/tracking/open_activity.rb
constantcontact-2.2.0 lib/constantcontact/components/tracking/open_activity.rb
constantcontact-2.1.0 lib/constantcontact/components/tracking/open_activity.rb
constantcontact-2.0.1 lib/constantcontact/components/tracking/open_activity.rb
constantcontact-2.0.0 lib/constantcontact/components/tracking/open_activity.rb
constantcontact-1.3.2 lib/constantcontact/components/tracking/open_activity.rb
constantcontact-1.2.0 lib/constantcontact/components/tracking/open_activity.rb
constantcontact-1.1.2 lib/constantcontact/components/tracking/open_activity.rb
constantcontact-1.1.1 lib/constantcontact/components/tracking/open_activity.rb
constantcontact-1.1.0 lib/constantcontact/components/tracking/open_activity.rb