Sha256: 6f4831cb719a84e3efc3f83849a2c171b1eb04d9e77dbbabca4356ce15c79be9

Contents?: true

Size: 708 Bytes

Versions: 14

Compression:

Stored size: 708 Bytes

Contents

#
# library_folder.rb
# ConstantContact
#
# Copyright (c) 2013 Constant Contact. All rights reserved.

module ConstantContact
  module Components
    class LibraryFolder < Component
      attr_accessor :created_date, :id, :item_count, :level, :modified_date, :name, :parent_id, :children

      # Factory method to create a LibraryFolder object from a json string
      # @param [Hash] props - properties to create object from
      # @return [LibraryFolder]
      def self.create(props)
        obj = LibraryFolder.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/library/folder/library_folder.rb
constantcontact-3.0.0 lib/constantcontact/components/library/folder/library_folder.rb
constantcontact-2.2.1 lib/constantcontact/components/library/folder/library_folder.rb
constantcontact-ruby-2.2.1 lib/constantcontact/components/library/folder/library_folder.rb
constantcontact-ruby-2.2.0 lib/constantcontact/components/library/folder/library_folder.rb
constantcontact-2.2.0 lib/constantcontact/components/library/folder/library_folder.rb
constantcontact-2.1.0 lib/constantcontact/components/library/folder/library_folder.rb
constantcontact-2.0.1 lib/constantcontact/components/library/folder/library_folder.rb
constantcontact-2.0.0 lib/constantcontact/components/library/folder/library_folder.rb
constantcontact-1.3.2 lib/constantcontact/components/library/folder/library_folder.rb
constantcontact-1.2.0 lib/constantcontact/components/library/folder/library_folder.rb
constantcontact-1.1.2 lib/constantcontact/components/library/folder/library_folder.rb
constantcontact-1.1.1 lib/constantcontact/components/library/folder/library_folder.rb
constantcontact-1.1.0 lib/constantcontact/components/library/folder/library_folder.rb