Sha256: 0ba2794e44c1fe4936b1776e1a464bd493de88471c9d8c23b141ffb804c939bb

Contents?: true

Size: 641 Bytes

Versions: 14

Compression:

Stored size: 641 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, :contact_count

      # Factory method to create a ContactList object from a json string
      # @param [Hash] props - properties to create object from
      # @return [ContactList]
      def self.create(props)
        obj = ContactList.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

14 entries across 14 versions & 2 rubygems

Version Path
constantcontact-4.0.0 lib/constantcontact/components/contacts/contact_list.rb
constantcontact-3.0.0 lib/constantcontact/components/contacts/contact_list.rb
constantcontact-2.2.1 lib/constantcontact/components/contacts/contact_list.rb
constantcontact-ruby-2.2.1 lib/constantcontact/components/contacts/contact_list.rb
constantcontact-ruby-2.2.0 lib/constantcontact/components/contacts/contact_list.rb
constantcontact-2.2.0 lib/constantcontact/components/contacts/contact_list.rb
constantcontact-2.1.0 lib/constantcontact/components/contacts/contact_list.rb
constantcontact-2.0.1 lib/constantcontact/components/contacts/contact_list.rb
constantcontact-2.0.0 lib/constantcontact/components/contacts/contact_list.rb
constantcontact-1.3.2 lib/constantcontact/components/contacts/contact_list.rb
constantcontact-1.2.0 lib/constantcontact/components/contacts/contact_list.rb
constantcontact-1.1.2 lib/constantcontact/components/contacts/contact_list.rb
constantcontact-1.1.1 lib/constantcontact/components/contacts/contact_list.rb
constantcontact-1.1.0 lib/constantcontact/components/contacts/contact_list.rb