class LookerSDK::Client::StreamingClient::Progress
Attributes
chunks[RW]
length[RW]
response[R]
Public Class Methods
new(response)
click to toggle source
# File lib/looker-sdk/client.rb, line 341 def initialize(response) @response = response @chunks = @length = 0 @stopped = false end
Public Instance Methods
add_chunk(chunk)
click to toggle source
# File lib/looker-sdk/client.rb, line 347 def add_chunk(chunk) @chunks += 1 @length += chunk.length end
stop()
click to toggle source
# File lib/looker-sdk/client.rb, line 352 def stop @stopped = true end
stopped?()
click to toggle source
# File lib/looker-sdk/client.rb, line 356 def stopped? @stopped end