Sha256: a35e130a3fec687ae34eff74ae414eb7308ab4cf4c1bf64b48fd7af249a54c56
Contents?: true
Size: 578 Bytes
Versions: 1
Compression:
Stored size: 578 Bytes
Contents
# # custom_field.rb # ConstantContact # # Copyright (c) 2013 Constant Contact. All rights reserved. module ConstantContact module Components class CustomField < Component attr_accessor :name, :value # Factory method to create a CustomField object from a json string # @param [Hash] props - array of properties to create object from # @return [CustomField] def self.create(props) obj = CustomField.new if props props.each do |key, value| obj.send("#{key}=", value) if obj.respond_to? key end end obj end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
constantcontact-1.0.2 | lib/constantcontact/components/contacts/custom_field.rb |