Class: Firecrawl::Models::ConcurrencyCheck

Inherits:
Object
  • Object
show all
Defined in:
lib/firecrawl/models/concurrency_check.rb

Overview

Current concurrency usage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ ConcurrencyCheck

Returns a new instance of ConcurrencyCheck.



9
10
11
12
# File 'lib/firecrawl/models/concurrency_check.rb', line 9

def initialize(data)
  @concurrency = data["concurrency"]
  @max_concurrency = data["maxConcurrency"]
end

Instance Attribute Details

#concurrencyObject (readonly)

Returns the value of attribute concurrency.



7
8
9
# File 'lib/firecrawl/models/concurrency_check.rb', line 7

def concurrency
  @concurrency
end

#max_concurrencyObject (readonly)

Returns the value of attribute max_concurrency.



7
8
9
# File 'lib/firecrawl/models/concurrency_check.rb', line 7

def max_concurrency
  @max_concurrency
end

Instance Method Details

#to_sObject



14
15
16
# File 'lib/firecrawl/models/concurrency_check.rb', line 14

def to_s
  "ConcurrencyCheck{concurrency=#{concurrency}/#{max_concurrency}}"
end