Class: Ebay::Schema::EnumerationValidation
- Inherits:
-
Object
- Object
- Ebay::Schema::EnumerationValidation
- Defined in:
- lib/ebay/schema/mapper/enumeration_validation.rb
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/ebay/schema/mapper/enumeration_validation.rb', line 4 def to_s <<-END def valid? CODES.include?(@code) end def self.valid?(code) CODES.include?(code) end END end |