Sha256: 3f4d71e41e002f7292a961df2f065f876e87fb4944b9aa8d6a5d965578517d96
Contents?: true
Size: 558 Bytes
Versions: 1
Compression:
Stored size: 558 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 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
constantcontact-1.0.1 | lib/constantcontact/components/contacts/note.rb |