# # send_activity.rb # ConstantContact # # Copyright (c) 2013 Constant Contact. All rights reserved. module ConstantContact module Components class SendActivity < Component attr_accessor :activity_type, :campaign_id, :email_address, :contact_id, :send_date # Factory method to create a SendActivity object from an array # @param [Hash] props - hash of properties to create object from # @return [SendActivity] def self.create(props) obj = SendActivity.new if props props.each do |key, value| obj.send("#{key}=", value) end end obj end end end end