Class: HealthVault::WCData::Types::Base64Sha1
- Inherits:
-
SimpleType
- Object
- SimpleType
- HealthVault::WCData::Types::Base64Sha1
- Defined in:
- lib/wc_data/generated/types/base64_sha1.rb
Overview
Base64Sha1 is a string
Class Method Summary collapse
Instance Method Summary collapse
-
#maxLength(value) ⇒ Object
maxLength = 28.
-
#minLength(value) ⇒ Object
minLength = 28.
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/base64_sha1.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 = 28
27 28 29 30 31 |
# File 'lib/wc_data/generated/types/base64_sha1.rb', line 27 def maxLength(value) return value.length < 28 end |
#minLength(value) ⇒ Object
minLength = 28
18 19 20 21 22 |
# File 'lib/wc_data/generated/types/base64_sha1.rb', line 18 def minLength(value) return value.length > 28 end |