Class: HealthVault::WCData::Types::Stringz32
- Inherits:
-
SimpleType
- Object
- SimpleType
- HealthVault::WCData::Types::Stringz32
- Defined in:
- lib/wc_data/generated/types/stringz32.rb
Overview
Stringz32 is a string
Class Method Summary collapse
Instance Method Summary collapse
-
#maxLength(value) ⇒ Object
maxLength = 32.
-
#minLength(value) ⇒ Object
minLength = 0.
Class Method Details
.valid?(value) ⇒ Boolean
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/wc_data/generated/types/stringz32.rb', line 36 def self.valid?(value) result = true result = result && self.minLength(value) result = result && self.maxLength(value) return result end |
Instance Method Details
#maxLength(value) ⇒ Object
maxLength = 32
27 28 29 30 31 |
# File 'lib/wc_data/generated/types/stringz32.rb', line 27 def maxLength(value) return value.length < 32 end |
#minLength(value) ⇒ Object
minLength = 0
18 19 20 21 22 |
# File 'lib/wc_data/generated/types/stringz32.rb', line 18 def minLength(value) return value.length > 0 end |