Class: App42::Upload::File

Inherits:
Object
  • Object
show all
Defined in:
lib/upload/Upload.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(upload) ⇒ File

This is constructor that take no parameters



34
35
36
# File 'lib/upload/Upload.rb', line 34

def initialize(upload)
  upload.fileList.push(self)
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



22
23
24
# File 'lib/upload/Upload.rb', line 22

def description
  @description
end

#nameObject

Returns the value of attribute name.



22
23
24
# File 'lib/upload/Upload.rb', line 22

def name
  @name
end

#tinyUrlObject

Returns the value of attribute tinyUrl.



22
23
24
# File 'lib/upload/Upload.rb', line 22

def tinyUrl
  @tinyUrl
end

#typeObject

Returns the value of attribute type.



22
23
24
# File 'lib/upload/Upload.rb', line 22

def type
  @type
end

#urlObject

Returns the value of attribute url.



22
23
24
# File 'lib/upload/Upload.rb', line 22

def url
  @url
end

#userNameObject

Returns the value of attribute userName.



22
23
24
# File 'lib/upload/Upload.rb', line 22

def userName
  @userName
end