Method: WordsRubySdk::Border#valid?
- Defined in:
- lib/words_ruby_sdk/models/border.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
150 151 152 153 154 155 156 |
# File 'lib/words_ruby_sdk/models/border.rb', line 150 def valid? border_type_validator = EnumAttributeValidator.new('String', %w["Bottom", "Left", "Right", "Top", "Horizontal", "Vertical", "DiagonalDown", "DiagonalUp", "None"]) return false unless border_type_validator.valid?(@border_type) line_style_validator = EnumAttributeValidator.new('String', %w["None", "Single", "Thick", "Double", "Hairline", "Dot", "DashLargeGap", "DotDash", "DotDotDash", "Triple", "ThinThickSmallGap", "ThickThinSmallGap", "ThinThickThinSmallGap", "ThinThickMediumGap", "ThickThinMediumGap", "ThinThickThinMediumGap", "ThinThickLargeGap", "ThickThinLargeGap", "ThinThickThinLargeGap", "Wave", "DoubleWave", "DashSmallGap", "DashDotStroker", "Emboss3D", "Engrave3D", "Outset", "Inset"]) return false unless line_style_validator.valid?(@line_style) return true end |