Sha256: 866863f08344bc25f8701613642fb13623de53505082bd1177b3c027d8f0509b

Contents?: true

Size: 405 Bytes

Versions: 1

Compression:

Stored size: 405 Bytes

Contents

module Workarea
  module FlowIo
    class Countries
      def self.all
        # @return [Io::Flow::V0::Models::Country]
        Rails.cache.fetch('flow-countries', expires_in: Workarea.config.cache_expirations.flow_io_country_cache) do
          FlowIo.client
            .organizations
            .get_countries_by_organization(Workarea::FlowIo.organization_id)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
workarea-flow_io-1.2.1 app/services/workarea/flow_io/countries.rb