Sha256: 9cf65716f5b03c72f78b84bb5c69486bb8b912e971f8c90f871a64ff5b8eb758

Contents?: true

Size: 530 Bytes

Versions: 1

Compression:

Stored size: 530 Bytes

Contents

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

module ConstantContact
  module Components
    class Note < Component
      attr_accessor :id, :note, :created_date

			# Factory method to create a Note object from a json string
			# @param [String] props - JSON string representing a contact
			# @return Note
			def self.create(props)
				note = Note.new
				if props
					props.each do |key, value|
						note.send("#{key}=", value)
					end
				end
				note
		  end
    end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
constantcontact-1.0.2 lib/constantcontact/components/contacts/note.rb