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