Module: Faraday::Adapter::Parallelism

Included in:
Faraday::Adapter
Defined in:
lib/faraday/adapter.rb

Overview

This module marks an Adapter as supporting parallel requests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#supports_parallel=(value) ⇒ Object (writeonly)

Sets the attribute supports_parallel

Parameters:

  • value

    the value to set the attribute supports_parallel to.



13
14
15
# File 'lib/faraday/adapter.rb', line 13

def supports_parallel=(value)
  @supports_parallel = value
end

Instance Method Details

#inherited(subclass) ⇒ Object



19
20
21
22
# File 'lib/faraday/adapter.rb', line 19

def inherited(subclass)
  super
  subclass.supports_parallel = supports_parallel?
end

#supports_parallel?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/faraday/adapter.rb', line 15

def supports_parallel?
  @supports_parallel
end