Sha256: 967bffe3a065ff10db4da4bfc25818537f48948c88ce73e672e91ffcf76d64a8
Contents?: true
Size: 518 Bytes
Versions: 3
Compression:
Stored size: 518 Bytes
Contents
# frozen_string_literal: true module Wayfarer module Networking # Wrapper structs for page retrieval results. module Result # Signals that a page has been retrieved (2xx or no browser error). # @!attribute [rw] page # @return [Page] the retrieved page. Success = Struct.new(:page) # Signals that a URL resulted in response with 3xx. # @!attribute [rw] redirect_url # @return [URI] Where to go next. Redirect = Struct.new(:redirect_url) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wayfarer-0.4.3 | lib/wayfarer/networking/result.rb |
wayfarer-0.4.2 | lib/wayfarer/networking/result.rb |
wayfarer-0.4.1 | lib/wayfarer/networking/result.rb |