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

Inherits:
ComplexType show all
Defined in:
lib/wc_data/generated/auth/auth.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

#initializeAuth

Returns a new instance of Auth.



30
31
32
33
34
35
36
37
38
39
# File 'lib/wc_data/generated/auth/auth.rb', line 30

def initialize
  super
  self.tag_name = 'auth'

  
  @children['rules'] = {:name => 'rules', :class => HealthVault::WCData::Auth::Rules, :value => nil, :min => 0, :max => 1, :order => 1, :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

#rulesObject

returns: a HealthVault::WCData::Auth::Rules



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

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

#rules=(value) ⇒ Object

value is a HealthVault::WCData::Auth::Rules



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

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