Sha256: 4872cd8f57ccfdba13a44780506d6360bffadac22282dc8485ec89425045cdb3

Contents?: true

Size: 861 Bytes

Versions: 1

Compression:

Stored size: 861 Bytes

Contents

# -----------------------------------------------------------------------
#  Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved.
# -----------------------------------------------------------------------

require 'App42Response.rb'

#
#
# This Upload object is the value object which contains the properties of
# Upload along with the setter & getter for those properties.
#
#

module App42
  module Upload
    class Upload < App42Response
      attr_accessor :fileList
      @fileList = Array.new
    end

    class File
      attr_accessor :name, :userName, :type, :description, :url, :tinyUrl

      @userName
      @name
      @type
      @url
      @description
      @tinyUrl

      #
      # This is constructor that take no parameters
      #
      def initialize(upload)
        upload.fileList.push(self)
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
App42_RUBY_SDK-0.8.3 lib/upload/Upload.rb