Sha256: 995fa3c1990323e0dc033d79e0aba65eac2620020847556bd1f8f31813c1b751
Contents?: true
Size: 653 Bytes
Versions: 6
Compression:
Stored size: 653 Bytes
Contents
# frozen_string_literal: true module Wayfarer module Networking module Strategy def renew_on [] end def fetch(instance, url) navigate(instance, url) live(instance) end def navigate(_instance, _url) raise NoMethodError end def live(_instance); end def create raise NoMethodError end def destroy(_instance); end private def success(...) Wayfarer::Networking::Result::Success.new(Wayfarer::Page.new(...)) end def redirect(...) Wayfarer::Networking::Result::Redirect.new(...) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems