Class: HealthVault::WCData::Dates::Hour
- Inherits:
-
SimpleType
- Object
- SimpleType
- HealthVault::WCData::Dates::Hour
- Defined in:
- lib/wc_data/generated/dates/hour.rb
Overview
Hour is a int
Class Method Summary collapse
Instance Method Summary collapse
-
#maxInclusive(value) ⇒ Object
maxInclusive = 23.
-
#minInclusive(value) ⇒ Object
minInclusive = 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/dates/hour.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 = 23
27 28 29 30 31 |
# File 'lib/wc_data/generated/dates/hour.rb', line 27 def maxInclusive(value) return true end |
#minInclusive(value) ⇒ Object
minInclusive = 0
18 19 20 21 22 |
# File 'lib/wc_data/generated/dates/hour.rb', line 18 def minInclusive(value) return value >= 0 end |