Sha256: 34b09abcedefb6b75eb7c09d1f96e1449af1c2ffed3fbca084a1cd50f63a7170

Contents?: true

Size: 592 Bytes

Versions: 12

Compression:

Stored size: 592 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, :modified_date

      # Factory method to create a Note object from a json string
      # @param [String] props - properties to create object from
      # @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

12 entries across 12 versions & 2 rubygems

Version Path
constantcontact-4.0.0 lib/constantcontact/components/contacts/note.rb
constantcontact-3.0.0 lib/constantcontact/components/contacts/note.rb
constantcontact-2.2.1 lib/constantcontact/components/contacts/note.rb
constantcontact-ruby-2.2.1 lib/constantcontact/components/contacts/note.rb
constantcontact-ruby-2.2.0 lib/constantcontact/components/contacts/note.rb
constantcontact-2.2.0 lib/constantcontact/components/contacts/note.rb
constantcontact-2.1.0 lib/constantcontact/components/contacts/note.rb
constantcontact-2.0.1 lib/constantcontact/components/contacts/note.rb
constantcontact-2.0.0 lib/constantcontact/components/contacts/note.rb
constantcontact-1.3.2 lib/constantcontact/components/contacts/note.rb
constantcontact-1.2.0 lib/constantcontact/components/contacts/note.rb
constantcontact-1.1.2 lib/constantcontact/components/contacts/note.rb