class ConstantContact::Components::OpenActivity

Attributes

activity_type[RW]
campaign_id[RW]
contact_id[RW]
email_address[RW]
open_date[RW]

Public Class Methods

create(props) click to toggle source

Factory method to create an OpenActivity object from an array @param [Hash] props - properties to create object from @return [OpenActivity]

# File lib/constantcontact/components/tracking/open_activity.rb, line 15
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