Class: HealthVault::WCData::Thing::Sjam::Wakestate

Inherits:
SimpleType
  • Object
show all
Defined in:
lib/wc_data/generated/thing/sjam/wake_state.rb

Overview

Wakestate is a int

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.valid?(value) ⇒ Boolean

Returns:

  • (Boolean)


37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/wc_data/generated/thing/sjam/wake_state.rb', line 37

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 = 3



28
29
30
31
32
# File 'lib/wc_data/generated/thing/sjam/wake_state.rb', line 28

def maxInclusive(value)

  return true

end

#minInclusive(value) ⇒ Object

minInclusive = 1



19
20
21
22
23
# File 'lib/wc_data/generated/thing/sjam/wake_state.rb', line 19

def minInclusive(value)

  return value >= 1

end