class Metro2::Records::K2Segment
Constants
- LENGTH
Public Instance Methods
validate_fields()
click to toggle source
# File lib/metro_2/records/k2_segment.rb, line 13 def validate_fields if !purchased_from_sold_to_name.nil? && purchased_from_sold_to_indicator == Metro2::PURCHASED_FROM_SOLD_TO_INDICATOR[:remove_previous] str = "purchased_from_sold_to_name must be blank if purchased_from_sold_to_indicator is 9" raise ArgumentError.new(str) end end