class Dropbox::UploadSessionCursor
UploadSessionCursor
holds information about an in-progress upload session.
@attr [String] session_id
A unique identifier for the session. @attr [Integer] offset The size of the data uploaded so far.
Attributes
offset[RW]
session_id[R]
Public Class Methods
new(session_id, offset)
click to toggle source
@param [String] session_id
@param [Integer] offset
# File lib/dropbox/upload_session_cursor.rb, line 12 def initialize(session_id, offset) @session_id = session_id @offset = offset end
Public Instance Methods
to_h()
click to toggle source
@return [Hash]
# File lib/dropbox/upload_session_cursor.rb, line 18 def to_h {session_id: session_id, offset: offset} end