Class: HealthVault::WCData::Types::RecordState
- Inherits:
-
SimpleType
- Object
- SimpleType
- HealthVault::WCData::Types::RecordState
- Defined in:
- lib/wc_data/generated/types/record_state.rb
Overview
RecordState is a string
Class Method Summary collapse
- .active ⇒ Object
- .deleted ⇒ Object
- .enum ⇒ Object
- .readonly ⇒ Object
- .suspended ⇒ Object
- .valid?(value) ⇒ Boolean
Class Method Details
.active ⇒ Object
18 19 20 |
# File 'lib/wc_data/generated/types/record_state.rb', line 18 def self.active return 'Active' end |
.deleted ⇒ Object
30 31 32 |
# File 'lib/wc_data/generated/types/record_state.rb', line 30 def self.deleted return 'Deleted' end |
.enum ⇒ Object
34 35 36 |
# File 'lib/wc_data/generated/types/record_state.rb', line 34 def self.enum return ['Active','ReadOnly','Suspended','Deleted'] end |
.readonly ⇒ Object
22 23 24 |
# File 'lib/wc_data/generated/types/record_state.rb', line 22 def self.readonly return 'ReadOnly' end |
.suspended ⇒ Object
26 27 28 |
# File 'lib/wc_data/generated/types/record_state.rb', line 26 def self.suspended return 'Suspended' end |
.valid?(value) ⇒ Boolean
41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/wc_data/generated/types/record_state.rb', line 41 def self.valid?(value) result = true result = result && self.enum.include?(value) return result end |