Class: SpreeCmCommissioner::UniversalLinkFetcher

Inherits:
BaseInteractor show all
Defined in:
app/interactors/spree_cm_commissioner/universal_link_fetcher.rb

Instance Method Summary collapse

Instance Method Details

#callObject



5
6
7
8
9
10
11
12
# File 'app/interactors/spree_cm_commissioner/universal_link_fetcher.rb', line 5

def call
  return not_found unless resource

  data = load_cached_preference(resource)
  return not_found if data.blank?

  { success: true, data: data }
end