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