Class: Uplink::UploadInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(upload_info_result, upload_info = nil) ⇒ UploadInfo

Returns a new instance of UploadInfo.



64
65
66
# File 'lib/uplink/upload.rb', line 64

def initialize(upload_info_result, upload_info = nil)
  init_attributes(upload_info_result.nil? || upload_info_result.null? ? upload_info : upload_info_result[:info])
end

Instance Attribute Details

#content_lengthObject (readonly)

Returns the value of attribute content_length.



62
63
64
# File 'lib/uplink/upload.rb', line 62

def content_length
  @content_length
end

#createdObject (readonly)

Returns the value of attribute created.



62
63
64
# File 'lib/uplink/upload.rb', line 62

def created
  @created
end

#customObject (readonly)

Returns the value of attribute custom.



62
63
64
# File 'lib/uplink/upload.rb', line 62

def custom
  @custom
end

#expiresObject (readonly)

Returns the value of attribute expires.



62
63
64
# File 'lib/uplink/upload.rb', line 62

def expires
  @expires
end

#is_prefixObject (readonly)

Returns the value of attribute is_prefix.



62
63
64
# File 'lib/uplink/upload.rb', line 62

def is_prefix
  @is_prefix
end

#keyObject (readonly)

Returns the value of attribute key.



62
63
64
# File 'lib/uplink/upload.rb', line 62

def key
  @key
end

#upload_idObject (readonly)

Returns the value of attribute upload_id.



62
63
64
# File 'lib/uplink/upload.rb', line 62

def upload_id
  @upload_id
end