class ConstantContact::Components::EventSpot::Contact

Attributes

email_address[RW]
name[RW]
organization_name[RW]
phone_number[RW]

Public Class Methods

create(props) click to toggle source

Factory method to create an event host Contact object from a hash @param [Hash] props - hash of properties to create object from @return [Campaign]

# File lib/constantcontact/components/event_spot/contact.rb, line 16
def self.create(props)
  obj = Contact.new
  props.each do |key, value|
    key = key.to_s
    obj.send("#{key}=", value) if obj.respond_to? key
  end if props
  obj
end