Sha256: 6ab8234974f43ef167d247f3984631c37e31c7f6f291871ef36e7541820d71c0

Contents?: true

Size: 723 Bytes

Versions: 3

Compression:

Stored size: 723 Bytes

Contents

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

module ConstantContact
  module Components
    module EventSpot
      class Contact < Component
        attr_accessor :id, :name, :email_address, :phone_number, :organization_name

        # 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)
          contact = Contact.new
          props.each do |key, value|
            key = key.to_s
            contact.send("#{key}=", value) if contact.respond_to? key
          end if props
          contact
        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/contact.rb
constantcontact-1.1.1 lib/constantcontact/components/event_spot/contact.rb
constantcontact-1.1.0 lib/constantcontact/components/event_spot/contact.rb