Sha256: 3866b5efec84b924f864a159e65261073a3e1bfd11aeb82d0efc118b37a5fe21

Contents?: true

Size: 875 Bytes

Versions: 3

Compression:

Stored size: 875 Bytes

Contents

#
# event_track.rb
# ConstantContact
#
# Copyright (c) 2013 Constant Contact. All rights reserved.

module ConstantContact
  module Components
    module EventSpot
      class EventTrack < Component
        attr_accessor :information_sections, :is_registration_closed_manually, :is_ticketing_link_displayed, :guest_limit, :registration_limit_count, :guest_display_label, :is_guest_name_required, :is_guest_anonymous_enabled

        # Factory method to create an event RegistrantTracking object from a hash
        # @param [Hash] props - hash of properties to create object from
        # @return [Campaign]
        def self.create(props)
          obj = EventTrack.new
          props.each do |key, value|
            key = key.to_s
            obj.send("#{key}=", value) if obj.respond_to? key
          end if props
          obj
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
constantcontact-1.1.2 lib/constantcontact/components/event_spot/event_track.rb
constantcontact-1.1.1 lib/constantcontact/components/event_spot/event_track.rb
constantcontact-1.1.0 lib/constantcontact/components/event_spot/event_track.rb