Sha256: b2ac45313c11e9c431cd6223d2a5ab16e85f2f1c42cee887250e0e04ba5b659d

Contents?: true

Size: 994 Bytes

Versions: 11

Compression:

Stored size: 994 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 :early_fee_date, :guest_display_label, :guest_limit, :information_sections,
                      :is_guest_anonymous_enabled, :is_guest_name_required, :is_registration_closed_manually,
                      :is_ticketing_link_displayed, :late_fee_date, :registration_limit_count,
                      :registration_limit_date

        # Factory method to create an event EventTrack object from a hash
        # @param [Hash] props - hash of properties to create object from
        # @return [EventTrack]
        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

11 entries across 11 versions & 2 rubygems

Version Path
constantcontact-4.0.0 lib/constantcontact/components/event_spot/event_track.rb
constantcontact-3.0.0 lib/constantcontact/components/event_spot/event_track.rb
constantcontact-2.2.1 lib/constantcontact/components/event_spot/event_track.rb
constantcontact-ruby-2.2.1 lib/constantcontact/components/event_spot/event_track.rb
constantcontact-ruby-2.2.0 lib/constantcontact/components/event_spot/event_track.rb
constantcontact-2.2.0 lib/constantcontact/components/event_spot/event_track.rb
constantcontact-2.1.0 lib/constantcontact/components/event_spot/event_track.rb
constantcontact-2.0.1 lib/constantcontact/components/event_spot/event_track.rb
constantcontact-2.0.0 lib/constantcontact/components/event_spot/event_track.rb
constantcontact-1.3.2 lib/constantcontact/components/event_spot/event_track.rb
constantcontact-1.2.0 lib/constantcontact/components/event_spot/event_track.rb