Method: CoreLibrary::Or#valid

Defined in:
lib/apimatic-core/authentication/multiple/or_auth_group.rb

#validBoolean

Checks if the associated auth is valid.

Returns:

  • (Boolean)

    True if the associated auth is valid, false otherwise.



19
20
21
22
23
24
25
26
27
28
# File 'lib/apimatic-core/authentication/multiple/or_auth_group.rb', line 19

def valid
  @mapped_group.each do |participant|
    @is_valid_group = participant.valid
    return true if @is_valid_group

    @error_messages.append(participant.error_message)
  end

  @is_valid_group
end