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