Method: Noths::Currency#list_invalid_properties
- Defined in:
- lib/noths/models/currency.rb
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/noths/models/currency.rb', line 65 def list_invalid_properties invalid_properties = Array.new if @subunit_to_unit.nil? invalid_properties.push("invalid value for 'subunit_to_unit', subunit_to_unit cannot be nil.") end if @symbol.nil? invalid_properties.push("invalid value for 'symbol', symbol cannot be nil.") end if @html_entity.nil? invalid_properties.push("invalid value for 'html_entity', html_entity cannot be nil.") end if @iso_code.nil? invalid_properties.push("invalid value for 'iso_code', iso_code cannot be nil.") end return invalid_properties end |