Sha256: c9c6a1902f01351f4a708b4d28e482fef84bb48ba6e6fdb502a7a39a76bf87b4

Contents?: true

Size: 846 Bytes

Versions: 139

Compression:

Stored size: 846 Bytes

Contents

module Eco
  module API
    class MicroCases
      # @param person [Ecoportal::API::V1::Person] the person we want to update, carrying the changes to be done.
      # @param options [Hash] the options.
      # @return [Array<String>] the account parameters that should not be included.
      def account_excluded(person, options)
        [].tap do |account_excluded|
          unless person.new?
            if options.dig(:exclude, :policy_groups)
              account_excluded.push("policy_group_ids")
            end
            if options.dig(:exclude, :default_tag)
              account_excluded.push("default_tag")
            end
            if options.dig(:exclude, :login_providers)
              account_excluded.push("login_provider_ids")
            end
          end
        end
      end
    end
  end
end

Version data entries

139 entries across 139 versions & 1 rubygems

Version Path
eco-helpers-2.0.67 lib/eco/api/microcases/account_excluded.rb
eco-helpers-2.0.66 lib/eco/api/microcases/account_excluded.rb
eco-helpers-2.0.65 lib/eco/api/microcases/account_excluded.rb
eco-helpers-2.0.64 lib/eco/api/microcases/account_excluded.rb
eco-helpers-2.0.63 lib/eco/api/microcases/account_excluded.rb
eco-helpers-2.0.62 lib/eco/api/microcases/account_excluded.rb
eco-helpers-2.0.61 lib/eco/api/microcases/account_excluded.rb
eco-helpers-2.0.60 lib/eco/api/microcases/account_excluded.rb
eco-helpers-2.0.59 lib/eco/api/microcases/account_excluded.rb
eco-helpers-2.0.58 lib/eco/api/microcases/account_excluded.rb
eco-helpers-2.0.57 lib/eco/api/microcases/account_excluded.rb
eco-helpers-2.0.56 lib/eco/api/microcases/account_excluded.rb
eco-helpers-2.0.55 lib/eco/api/microcases/account_excluded.rb
eco-helpers-2.0.54 lib/eco/api/microcases/account_excluded.rb
eco-helpers-2.0.53 lib/eco/api/microcases/account_excluded.rb
eco-helpers-2.0.52 lib/eco/api/microcases/account_excluded.rb
eco-helpers-2.0.51 lib/eco/api/microcases/account_excluded.rb
eco-helpers-2.0.50 lib/eco/api/microcases/account_excluded.rb
eco-helpers-2.0.49 lib/eco/api/microcases/account_excluded.rb
eco-helpers-2.0.48 lib/eco/api/microcases/account_excluded.rb