Class: ConstantContact::Components::Event
- Defined in:
- lib/constantcontact/components/event_spot/event.rb
Instance Attribute Summary collapse
-
#active_date ⇒ Object
Returns the value of attribute active_date.
-
#address ⇒ Object
Returns the value of attribute address.
-
#are_registrants_public ⇒ Object
Returns the value of attribute are_registrants_public.
-
#cancelled_date ⇒ Object
Returns the value of attribute cancelled_date.
-
#contact ⇒ Object
Returns the value of attribute contact.
-
#created_date ⇒ Object
Returns the value of attribute created_date.
-
#currency_type ⇒ Object
Returns the value of attribute currency_type.
-
#deleted_date ⇒ Object
Returns the value of attribute deleted_date.
-
#description ⇒ Object
Returns the value of attribute description.
-
#end_date ⇒ Object
Returns the value of attribute end_date.
-
#google_analytics_key ⇒ Object
Returns the value of attribute google_analytics_key.
-
#google_merchant_id ⇒ Object
Returns the value of attribute google_merchant_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_calendar_displayed ⇒ Object
Returns the value of attribute is_calendar_displayed.
-
#is_checkin_available ⇒ Object
Returns the value of attribute is_checkin_available.
-
#is_home_page_displayed ⇒ Object
Returns the value of attribute is_home_page_displayed.
-
#is_listed_in_external_directory ⇒ Object
Returns the value of attribute is_listed_in_external_directory.
-
#is_map_displayed ⇒ Object
Returns the value of attribute is_map_displayed.
-
#is_virtual_event ⇒ Object
Returns the value of attribute is_virtual_event.
-
#location ⇒ Object
Returns the value of attribute location.
-
#meta_data_tags ⇒ Object
Returns the value of attribute meta_data_tags.
-
#name ⇒ Object
Returns the value of attribute name.
-
#notification_options ⇒ Object
Returns the value of attribute notification_options.
-
#online_meeting ⇒ Object
Returns the value of attribute online_meeting.
-
#payable_to ⇒ Object
Returns the value of attribute payable_to.
-
#payment_address ⇒ Object
Returns the value of attribute payment_address.
-
#payment_options ⇒ Object
Returns the value of attribute payment_options.
-
#paypal_account_email ⇒ Object
Returns the value of attribute paypal_account_email.
-
#registration_url ⇒ Object
Returns the value of attribute registration_url.
-
#start_date ⇒ Object
Returns the value of attribute start_date.
-
#status ⇒ Object
Returns the value of attribute status.
-
#theme_name ⇒ Object
Returns the value of attribute theme_name.
-
#time_zone_description ⇒ Object
Returns the value of attribute time_zone_description.
-
#time_zone_id ⇒ Object
Returns the value of attribute time_zone_id.
-
#title ⇒ Object
Returns the value of attribute title.
-
#total_registered_count ⇒ Object
Returns the value of attribute total_registered_count.
-
#track_information ⇒ Object
Returns the value of attribute track_information.
-
#twitter_hash_tag ⇒ Object
Returns the value of attribute twitter_hash_tag.
-
#type ⇒ Object
Returns the value of attribute type.
-
#updated_date ⇒ Object
Returns the value of attribute updated_date.
Class Method Summary collapse
-
.create(props) ⇒ Event
Factory method to create an Event object from a hash.
-
.create_summary(props) ⇒ Event
Factory method to create a summary Event object from a hash.
Methods inherited from Component
#to_hash, to_hash_value, #to_json
Instance Attribute Details
#active_date ⇒ Object
Returns the value of attribute active_date
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def active_date @active_date end |
#address ⇒ Object
Returns the value of attribute address
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def address @address end |
#are_registrants_public ⇒ Object
Returns the value of attribute are_registrants_public
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def are_registrants_public @are_registrants_public end |
#cancelled_date ⇒ Object
Returns the value of attribute cancelled_date
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def cancelled_date @cancelled_date end |
#contact ⇒ Object
Returns the value of attribute contact
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def contact @contact end |
#created_date ⇒ Object
Returns the value of attribute created_date
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def created_date @created_date end |
#currency_type ⇒ Object
Returns the value of attribute currency_type
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def currency_type @currency_type end |
#deleted_date ⇒ Object
Returns the value of attribute deleted_date
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def deleted_date @deleted_date end |
#description ⇒ Object
Returns the value of attribute description
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def description @description end |
#end_date ⇒ Object
Returns the value of attribute end_date
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def end_date @end_date end |
#google_analytics_key ⇒ Object
Returns the value of attribute google_analytics_key
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def google_analytics_key @google_analytics_key end |
#google_merchant_id ⇒ Object
Returns the value of attribute google_merchant_id
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def google_merchant_id @google_merchant_id end |
#id ⇒ Object
Returns the value of attribute id
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def id @id end |
#is_calendar_displayed ⇒ Object
Returns the value of attribute is_calendar_displayed
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def is_calendar_displayed @is_calendar_displayed end |
#is_checkin_available ⇒ Object
Returns the value of attribute is_checkin_available
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def is_checkin_available @is_checkin_available end |
#is_home_page_displayed ⇒ Object
Returns the value of attribute is_home_page_displayed
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def is_home_page_displayed @is_home_page_displayed end |
#is_listed_in_external_directory ⇒ Object
Returns the value of attribute is_listed_in_external_directory
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def is_listed_in_external_directory @is_listed_in_external_directory end |
#is_map_displayed ⇒ Object
Returns the value of attribute is_map_displayed
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def is_map_displayed @is_map_displayed end |
#is_virtual_event ⇒ Object
Returns the value of attribute is_virtual_event
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def is_virtual_event @is_virtual_event end |
#location ⇒ Object
Returns the value of attribute location
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def location @location end |
#meta_data_tags ⇒ Object
Returns the value of attribute meta_data_tags
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def @meta_data_tags end |
#name ⇒ Object
Returns the value of attribute name
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def name @name end |
#notification_options ⇒ Object
Returns the value of attribute notification_options
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def @notification_options end |
#online_meeting ⇒ Object
Returns the value of attribute online_meeting
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def online_meeting @online_meeting end |
#payable_to ⇒ Object
Returns the value of attribute payable_to
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def payable_to @payable_to end |
#payment_address ⇒ Object
Returns the value of attribute payment_address
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def payment_address @payment_address end |
#payment_options ⇒ Object
Returns the value of attribute payment_options
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def @payment_options end |
#paypal_account_email ⇒ Object
Returns the value of attribute paypal_account_email
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def paypal_account_email @paypal_account_email end |
#registration_url ⇒ Object
Returns the value of attribute registration_url
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def registration_url @registration_url end |
#start_date ⇒ Object
Returns the value of attribute start_date
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def start_date @start_date end |
#status ⇒ Object
Returns the value of attribute status
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def status @status end |
#theme_name ⇒ Object
Returns the value of attribute theme_name
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def theme_name @theme_name end |
#time_zone_description ⇒ Object
Returns the value of attribute time_zone_description
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def time_zone_description @time_zone_description end |
#time_zone_id ⇒ Object
Returns the value of attribute time_zone_id
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def time_zone_id @time_zone_id end |
#title ⇒ Object
Returns the value of attribute title
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def title @title end |
#total_registered_count ⇒ Object
Returns the value of attribute total_registered_count
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def total_registered_count @total_registered_count end |
#track_information ⇒ Object
Returns the value of attribute track_information
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def track_information @track_information end |
#twitter_hash_tag ⇒ Object
Returns the value of attribute twitter_hash_tag
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def twitter_hash_tag @twitter_hash_tag end |
#type ⇒ Object
Returns the value of attribute type
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def type @type end |
#updated_date ⇒ Object
Returns the value of attribute updated_date
10 11 12 |
# File 'lib/constantcontact/components/event_spot/event.rb', line 10 def updated_date @updated_date end |
Class Method Details
.create(props) ⇒ Event
Factory method to create an Event object from a hash
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# 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. = 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) ⇒ Event
Factory method to create a summary Event object from a hash
52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# 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 |