Sha256: 04158ca3b95f28c667185a504da8ddbb389c8096ee15a15b32ba40f3c320adb1

Contents?: true

Size: 337 Bytes

Versions: 3

Compression:

Stored size: 337 Bytes

Contents

class CloudscrapeClient
  class RunDTO < DTO
    def endpoint
      "runs/#{id}/#{url}?connect=#{connect}"
    end

    private

    def id
      options.fetch(:id)
    end

    def url
      options.fetch(:url)
    end

    def connect
      options.fetch(:connect)
    end

    def params
      options.fetch(:input)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cloudscrape-client-0.4.0 lib/cloudscrape_client/run_dto.rb
cloudscrape-client-0.2.2 lib/cloudscrape_client/run_dto.rb
cloudscrape-client-0.2.1 lib/cloudscrape_client/run_dto.rb