Sha256: c89d23511be2a445879fea15febca8cd417131b370c2b01b4c48014e5e6f0e33

Contents?: true

Size: 799 Bytes

Versions: 14

Compression:

Stored size: 799 Bytes

Contents

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

module ConstantContact
  module Components
    class LibraryFile < Component
      attr_accessor :created_date, :description, :file_type, :folder, :folder_id, :height, :id, :is_image,
                    :modified_date, :name, :size, :source, :status, :thumbnail, :url, :width, :type

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