Class: HealthVault::WCData::Auth::Rule
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Auth::Rule
- Defined in:
- lib/wc_data/generated/auth/rule.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#add_exception_set(value) ⇒ Object
value is a HealthVault::WCData::Auth::Set.
-
#add_permission(value) ⇒ Object
value is a HealthVault::WCData::Types::Permission.
-
#add_target_set(value) ⇒ Object
value is a HealthVault::WCData::Auth::Set.
-
#display_flags ⇒ Object
returns: a String.
-
#display_flags=(value) ⇒ Object
value is a String.
-
#exception_set ⇒ Object
returns: a HealthVault::WCData::Auth::Set Array.
-
#initialize ⇒ Rule
constructor
A new instance of Rule.
-
#is_incr ⇒ Object
returns: a String.
-
#is_incr=(value) ⇒ Object
value is a String.
-
#is_optional ⇒ Object
returns: a String.
-
#is_optional=(value) ⇒ Object
value is a String.
-
#name ⇒ Object
returns: a HealthVault::WCData::Types::String16.
-
#name=(value) ⇒ Object
remarks: The name must be unique within the rule set.
-
#permission ⇒ Object
REQUIRED returns: a HealthVault::WCData::Types::Permission Array.
-
#reason ⇒ Object
returns: a HealthVault::WCData::Types::String1024.
-
#reason=(value) ⇒ Object
remarks: This reason string will be presented to the user when the application asks them to approve this rule.
-
#remove_exception_set(value) ⇒ Object
value is a #HealthVault::WCData::Auth::Set.
-
#remove_permission(value) ⇒ Object
value is a #HealthVault::WCData::Types::Permission.
-
#remove_target_set(value) ⇒ Object
value is a #HealthVault::WCData::Auth::Set.
-
#target_set ⇒ Object
returns: a HealthVault::WCData::Auth::Set Array.
Methods inherited from ComplexType
#add_new_to_children, #element, #method_missing, #optional_elements, #parse_element, #query_elements, #required_elements, #to_s, #valid?
Constructor Details
#initialize ⇒ Rule
Returns a new instance of Rule.
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
# File 'lib/wc_data/generated/auth/rule.rb', line 141 def initialize super self.tag_name = 'rule' @children['reason'] = {:name => 'reason', :class => HealthVault::WCData::Types::String1024, :value => nil, :min => 0, :max => 1, :order => 1, :place => :element, :choice => 0 } @children['display-flags'] = {:name => 'display-flags', :class => String, :value => nil, :min => 0, :max => 1, :order => 2, :place => :element, :choice => 0 } @children['permission'] = {:name => 'permission', :class => HealthVault::WCData::Types::Permission, :value => Array.new, :min => 1, :max => 5, :order => 3, :place => :element, :choice => 0 } @children['target-set'] = {:name => 'target-set', :class => HealthVault::WCData::Auth::Set, :value => Array.new, :min => 0, :max => 999999, :order => 4, :place => :element, :choice => 0 } @children['exception-set'] = {:name => 'exception-set', :class => HealthVault::WCData::Auth::Set, :value => Array.new, :min => 0, :max => 999999, :order => 5, :place => :element, :choice => 0 } @children['is-incr'] = {:name => 'is-incr', :class => String, :value => nil, :min => 0, :max => 1, :order => 0, :place => :attribute, :choice => 0 } @children['is-optional'] = {:name => 'is-optional', :class => String, :value => nil, :min => 0, :max => 1, :order => 0, :place => :attribute, :choice => 0 } @children['name'] = {:name => 'name', :class => HealthVault::WCData::Types::String16, :value => nil, :min => 0, :max => 1, :order => 0, :place => :attribute, :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
#add_exception_set(value) ⇒ Object
value is a HealthVault::WCData::Auth::Set
83 84 85 |
# File 'lib/wc_data/generated/auth/rule.rb', line 83 def add_exception_set(value) @children['exception-set'][:value] << value end |
#add_permission(value) ⇒ Object
value is a HealthVault::WCData::Types::Permission
47 48 49 |
# File 'lib/wc_data/generated/auth/rule.rb', line 47 def (value) @children['permission'][:value] << value end |
#add_target_set(value) ⇒ Object
value is a HealthVault::WCData::Auth::Set
65 66 67 |
# File 'lib/wc_data/generated/auth/rule.rb', line 65 def add_target_set(value) @children['target-set'][:value] << value end |
#display_flags ⇒ Object
returns: a String
40 41 42 |
# File 'lib/wc_data/generated/auth/rule.rb', line 40 def display_flags return @children['display-flags'][:value] end |
#display_flags=(value) ⇒ Object
value is a String
35 36 37 |
# File 'lib/wc_data/generated/auth/rule.rb', line 35 def display_flags=(value) @children['display-flags'][:value] = value end |
#exception_set ⇒ Object
returns: a HealthVault::WCData::Auth::Set Array
94 95 96 |
# File 'lib/wc_data/generated/auth/rule.rb', line 94 def exception_set return @children['exception-set'][:value] end |
#is_incr ⇒ Object
returns: a String
107 108 109 |
# File 'lib/wc_data/generated/auth/rule.rb', line 107 def is_incr return @children['is-incr'][:value] end |
#is_incr=(value) ⇒ Object
value is a String
102 103 104 |
# File 'lib/wc_data/generated/auth/rule.rb', line 102 def is_incr=(value) @children['is-incr'][:value] = value end |
#is_optional ⇒ Object
returns: a String
120 121 122 |
# File 'lib/wc_data/generated/auth/rule.rb', line 120 def is_optional return @children['is-optional'][:value] end |
#is_optional=(value) ⇒ Object
value is a String
115 116 117 |
# File 'lib/wc_data/generated/auth/rule.rb', line 115 def is_optional=(value) @children['is-optional'][:value] = value end |
#name ⇒ Object
returns: a HealthVault::WCData::Types::String16
135 136 137 |
# File 'lib/wc_data/generated/auth/rule.rb', line 135 def name return @children['name'][:value] end |
#name=(value) ⇒ Object
remarks: The name must be unique within the rule set. value is a HealthVault::WCData::Types::String16
130 131 132 |
# File 'lib/wc_data/generated/auth/rule.rb', line 130 def name=(value) @children['name'][:value] = value end |
#permission ⇒ Object
REQUIRED returns: a HealthVault::WCData::Types::Permission Array
58 59 60 |
# File 'lib/wc_data/generated/auth/rule.rb', line 58 def return @children['permission'][:value] end |
#reason ⇒ Object
returns: a HealthVault::WCData::Types::String1024
26 27 28 |
# File 'lib/wc_data/generated/auth/rule.rb', line 26 def reason return @children['reason'][:value] end |
#reason=(value) ⇒ Object
remarks: This reason string will be presented to the user when the application asks them to approve this rule. value is a HealthVault::WCData::Types::String1024
21 22 23 |
# File 'lib/wc_data/generated/auth/rule.rb', line 21 def reason=(value) @children['reason'][:value] = value end |
#remove_exception_set(value) ⇒ Object
value is a #HealthVault::WCData::Auth::Set
88 89 90 |
# File 'lib/wc_data/generated/auth/rule.rb', line 88 def remove_exception_set(value) @children['exception-set'][:value].delete(value) end |
#remove_permission(value) ⇒ Object
value is a #HealthVault::WCData::Types::Permission
52 53 54 |
# File 'lib/wc_data/generated/auth/rule.rb', line 52 def (value) @children['permission'][:value].delete(value) end |
#remove_target_set(value) ⇒ Object
value is a #HealthVault::WCData::Auth::Set
70 71 72 |
# File 'lib/wc_data/generated/auth/rule.rb', line 70 def remove_target_set(value) @children['target-set'][:value].delete(value) end |
#target_set ⇒ Object
returns: a HealthVault::WCData::Auth::Set Array
76 77 78 |
# File 'lib/wc_data/generated/auth/rule.rb', line 76 def target_set return @children['target-set'][:value] end |