Sha256: 89f3f95581ec16b0f49a79a466da9ed2409fe1506c212ac9b24206badcfa71e3

Contents?: true

Size: 650 Bytes

Versions: 14

Compression:

Stored size: 650 Bytes

Contents

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

module ConstantContact
  module Components
    class UploadStatus < Component
      attr_accessor :status, :description, :file_id

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