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