Class: HealthVault::WCData::Dates::Month
- Inherits:
-
SimpleType
- Object
- SimpleType
- HealthVault::WCData::Dates::Month
- Defined in:
- lib/wc_data/generated/dates/month.rb
Overview
Month is a int
Class Method Summary collapse
Instance Method Summary collapse
-
#maxInclusive(value) ⇒ Object
maxInclusive = 12.
-
#minInclusive(value) ⇒ Object
minInclusive = 1.
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/dates/month.rb', line 36 def self.valid?(value) result = true result = result && self.minInclusive(value) result = result && self.maxInclusive(value) return result end |
Instance Method Details
#maxInclusive(value) ⇒ Object
maxInclusive = 12
27 28 29 30 31 |
# File 'lib/wc_data/generated/dates/month.rb', line 27 def maxInclusive(value) return true end |
#minInclusive(value) ⇒ Object
minInclusive = 1
18 19 20 21 22 |
# File 'lib/wc_data/generated/dates/month.rb', line 18 def minInclusive(value) return value >= 1 end |