Class: WireClient::BaseValidator
- Inherits:
-
ActiveModel::Validator
- Object
- ActiveModel::Validator
- WireClient::BaseValidator
- Defined in:
- lib/wire_client/base/validators.rb
Direct Known Subclasses
BICValidator, CountrySubdivisionValidator, IBANValidator, RegexBasedValidators
Instance Method Summary collapse
Instance Method Details
#extract_field_name_value(record) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/wire_client/base/validators.rb', line 5 def extract_field_name_value(record) field_name = [:field_name] || self.class.default_field_name value = record.send(field_name).to_s [field_name, value] end |