Sha256: 82234e8b5d290d26d180e8dfac8a02e65763145035b8a13382e74e63d958acdc

Contents?: true

Size: 716 Bytes

Versions: 14

Compression:

Stored size: 716 Bytes

Contents

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

module ConstantContact
  module Components
    module EventSpot
      class RegistrantField < Component
        attr_accessor :type, :name, :label, :value, :values

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

Version data entries

14 entries across 14 versions & 2 rubygems

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