lib/ms_teams/message.rb
# Ensures that the required fields are present
#   Raises an ArgumentError if the required fields are not present.
Ensures that the required fields are present
Raises an ArgumentError if the required fields are not present.
Ensures that the required fields are present Raises an ArgumentError if the required fields are not present .
def validate
      REQUIRED_FIELDS.each do |field|
        error( field ) if @builder[field].nil? || @builder[field].empty?
      end
      true
    end
def validate REQUIRED_FIELDS . each do | field | error ( field ) if @builder [ field ] . nil? || @builder [ field ] . empty? end true end
Ensures that the required fields are present
Raises an ArgumentError if the required fields are not present.
Ensures that the required fields are present Raises an ArgumentError if the required fields are not present .