Sha256: 2804b18862cb390793414d6ea696c1b6ca9e44d1b8cf00dbfacbb53a56862efe
Contents?: true
Size: 575 Bytes
Versions: 2
Compression:
Stored size: 575 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 - 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
constantcontact-1.1.1 | lib/constantcontact/components/contacts/note.rb |
constantcontact-1.1.0 | lib/constantcontact/components/contacts/note.rb |