Class: HealthVault::WCData::Auth::TextualRule

Inherits:
ComplexType
  • Object
show all
Defined in:
lib/wc_data/generated/auth/textual_rule.rb

Instance Attribute Summary

Attributes inherited from ComplexType

#tag_name

Instance Method Summary collapse

Methods inherited from ComplexType

#add_new_to_children, #element, #method_missing, #optional_elements, #parse_element, #query_elements, #required_elements, #to_s, #valid?

Constructor Details

#initializeTextualRule

Returns a new instance of TextualRule.



108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# File 'lib/wc_data/generated/auth/textual_rule.rb', line 108

def initialize
  super
  self.tag_name = 'textualrule'

  
  @children['permission'] = {:name => 'permission', :class => String, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 0 }
    
  @children['permission'][:value] = String.new
    
  

  
  @children['target-thing-types'] = {:name => 'target-thing-types', :class => String, :value => nil, :min => 0, :max => 1, :order => 2, :place => :element, :choice => 0 }
    
  

  
  @children['target-sets'] = {:name => 'target-sets', :class => String, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 0 }
    
  

  
  @children['target-dates'] = {:name => 'target-dates', :class => String, :value => nil, :min => 0, :max => 1, :order => 4, :place => :element, :choice => 0 }
    
  

  
  @children['except-thing-types'] = {:name => 'except-thing-types', :class => String, :value => nil, :min => 0, :max => 1, :order => 5, :place => :element, :choice => 0 }
    
  

  
  @children['except-sets'] = {:name => 'except-sets', :class => String, :value => nil, :min => 0, :max => 1, :order => 6, :place => :element, :choice => 0 }
    
  

  
  @children['except-dates'] = {:name => 'except-dates', :class => String, :value => nil, :min => 0, :max => 1, :order => 7, :place => :element, :choice => 0 }
    
  

end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class HealthVault::WCData::ComplexType

Instance Method Details

#except_datesObject

returns: a String



102
103
104
# File 'lib/wc_data/generated/auth/textual_rule.rb', line 102

def except_dates
  return @children['except-dates'][:value]
end

#except_dates=(value) ⇒ Object

value is a String



97
98
99
# File 'lib/wc_data/generated/auth/textual_rule.rb', line 97

def except_dates=(value)
  @children['except-dates'][:value] = value
end

#except_setsObject

returns: a String



89
90
91
# File 'lib/wc_data/generated/auth/textual_rule.rb', line 89

def except_sets
  return @children['except-sets'][:value]
end

#except_sets=(value) ⇒ Object

value is a String



84
85
86
# File 'lib/wc_data/generated/auth/textual_rule.rb', line 84

def except_sets=(value)
  @children['except-sets'][:value] = value
end

#except_thing_typesObject

returns: a String



76
77
78
# File 'lib/wc_data/generated/auth/textual_rule.rb', line 76

def except_thing_types
  return @children['except-thing-types'][:value]
end

#except_thing_types=(value) ⇒ Object

value is a String



71
72
73
# File 'lib/wc_data/generated/auth/textual_rule.rb', line 71

def except_thing_types=(value)
  @children['except-thing-types'][:value] = value
end

#permissionObject

returns: a String



24
25
26
# File 'lib/wc_data/generated/auth/textual_rule.rb', line 24

def permission
  return @children['permission'][:value]
end

#permission=(value) ⇒ Object

REQUIRED value is a String



19
20
21
# File 'lib/wc_data/generated/auth/textual_rule.rb', line 19

def permission=(value)
  @children['permission'][:value] = value
end

#target_datesObject

returns: a String



63
64
65
# File 'lib/wc_data/generated/auth/textual_rule.rb', line 63

def target_dates
  return @children['target-dates'][:value]
end

#target_dates=(value) ⇒ Object

value is a String



58
59
60
# File 'lib/wc_data/generated/auth/textual_rule.rb', line 58

def target_dates=(value)
  @children['target-dates'][:value] = value
end

#target_setsObject

returns: a String



50
51
52
# File 'lib/wc_data/generated/auth/textual_rule.rb', line 50

def target_sets
  return @children['target-sets'][:value]
end

#target_sets=(value) ⇒ Object

value is a String



45
46
47
# File 'lib/wc_data/generated/auth/textual_rule.rb', line 45

def target_sets=(value)
  @children['target-sets'][:value] = value
end

#target_thing_typesObject

returns: a String



37
38
39
# File 'lib/wc_data/generated/auth/textual_rule.rb', line 37

def target_thing_types
  return @children['target-thing-types'][:value]
end

#target_thing_types=(value) ⇒ Object

value is a String



32
33
34
# File 'lib/wc_data/generated/auth/textual_rule.rb', line 32

def target_thing_types=(value)
  @children['target-thing-types'][:value] = value
end