class ConstantContact::Components::Event
Attributes
active_date[RW]
address[RW]
are_registrants_public[RW]
cancelled_date[RW]
contact[RW]
created_date[RW]
currency_type[RW]
deleted_date[RW]
description[RW]
end_date[RW]
google_analytics_key[RW]
google_merchant_id[RW]
id[RW]
is_calendar_displayed[RW]
is_checkin_available[RW]
is_home_page_displayed[RW]
is_listed_in_external_directory[RW]
is_map_displayed[RW]
is_virtual_event[RW]
location[RW]
name[RW]
notification_options[RW]
online_meeting[RW]
payable_to[RW]
payment_address[RW]
payment_options[RW]
paypal_account_email[RW]
registration_url[RW]
start_date[RW]
status[RW]
theme_name[RW]
time_zone_description[RW]
time_zone_id[RW]
title[RW]
total_registered_count[RW]
track_information[RW]
twitter_hash_tag[RW]
type[RW]
updated_date[RW]
Public Class Methods
create(props)
click to toggle source
Factory method to create an Event
object from a hash @param [Hash] props - hash of properties to create object from @return [Event]
# File lib/constantcontact/components/event_spot/event.rb, line 22 def self.create(props) obj = Event.new if props props.each do |key, value| key = key.to_s if key == 'address' obj.address = Components::EventSpot::EventAddress.create(value) elsif key == 'contact' obj.contact = Components::EventSpot::Contact.create(value) elsif key == 'notification_options' value ||= [] obj.notification_options = value.collect{|option| Components::EventSpot::NotificationOption.create(option) } elsif key == 'online_meeting' obj.online_meeting = Components::EventSpot::OnlineMeeting.create(value) elsif key == 'payment_adress' obj.payment_adress = Components::EventSpot::PaymentAddress.create(value) elsif key == 'track_information' value ||= [] obj.track_information = Components::EventSpot::EventTrack.create(value) else obj.send("#{key}=", value) if obj.respond_to?("#{key}=") end end end obj end
create_summary(props)
click to toggle source
Factory method to create a summary Event
object from a hash @param [Hash] props - hash of properties to create object from @return [Event]
# File lib/constantcontact/components/event_spot/event.rb, line 52 def self.create_summary(props) obj = Event.new if props props.each do |key, value| key = key.to_s if key == 'address' obj.address = Components::EventSpot::EventAddress.create(value) else obj.send("#{key}=", value) if obj.respond_to?("#{key}=") end end end obj end