This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.ponzmild.aws | |
import com.amazonaws.services.simplesystemsmanagement.model.{GetParameterRequest} | |
import com.amazonaws.services.simplesystemsmanagement.{AWSSimpleSystemsManagement, AWSSimpleSystemsManagementClientBuilder} | |
import scala.util.{Failure, Success, Try} | |
/** | |
* Find value from AWS SSM ParameterStore | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ValidateSpanishVat | |
module ClassMethods | |
# Implements model level validator for Spanish's VAT number. | |
# Usage: | |
# | |
# Inside a model with a vat field, simply put | |
# | |
# validates_spanish_vat field_name | |
# | |
def validates_spanish_vat(*attr_names) |