Class: HealthVault::WCData::Auth::TextualPermissions
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Auth::TextualPermissions
- Defined in:
- lib/wc_data/generated/auth/textual_permissions.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#initialize ⇒ TextualPermissions
constructor
A new instance of TextualPermissions.
-
#textual_permissions_type ⇒ Object
returns: a HealthVault::WCData::Auth::TextualPermissionsType.
-
#textual_permissions_type=(value) ⇒ Object
REQUIRED value is a HealthVault::WCData::Auth::TextualPermissionsType.
-
#textual_rule ⇒ Object
returns: a HealthVault::WCData::Auth::TextualRule.
-
#textual_rule=(value) ⇒ Object
REQUIRED value is a HealthVault::WCData::Auth::TextualRule.
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 ⇒ TextualPermissions
Returns a new instance of TextualPermissions.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/wc_data/generated/auth/textual_permissions.rb', line 43 def initialize super self.tag_name = 'textualpermissions' @children['textual-permissions-type'] = {:name => 'textual-permissions-type', :class => HealthVault::WCData::Auth::TextualPermissionsType, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 0 } @children['textual-permissions-type'][:value] = HealthVault::WCData::Auth::TextualPermissionsType.new @children['textual-rule'] = {:name => 'textual-rule', :class => HealthVault::WCData::Auth::TextualRule, :value => nil, :min => 1, :max => 1, :order => 2, :place => :element, :choice => 0 } @children['textual-rule'][:value] = HealthVault::WCData::Auth::TextualRule.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HealthVault::WCData::ComplexType
Instance Method Details
#textual_permissions_type ⇒ Object
returns: a HealthVault::WCData::Auth::TextualPermissionsType
24 25 26 |
# File 'lib/wc_data/generated/auth/textual_permissions.rb', line 24 def return @children['textual-permissions-type'][:value] end |
#textual_permissions_type=(value) ⇒ Object
REQUIRED value is a HealthVault::WCData::Auth::TextualPermissionsType
19 20 21 |
# File 'lib/wc_data/generated/auth/textual_permissions.rb', line 19 def (value) @children['textual-permissions-type'][:value] = value end |
#textual_rule ⇒ Object
returns: a HealthVault::WCData::Auth::TextualRule
37 38 39 |
# File 'lib/wc_data/generated/auth/textual_permissions.rb', line 37 def textual_rule return @children['textual-rule'][:value] end |
#textual_rule=(value) ⇒ Object
REQUIRED value is a HealthVault::WCData::Auth::TextualRule
32 33 34 |
# File 'lib/wc_data/generated/auth/textual_permissions.rb', line 32 def textual_rule=(value) @children['textual-rule'][:value] = value end |