Class: HealthVault::WCData::Thing::Audit

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

#initializeAudit

Returns a new instance of Audit.



103
104
105
106
107
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
# File 'lib/wc_data/generated/thing/audit.rb', line 103

def initialize
  super
  self.tag_name = 'audit'

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

  
  @children['app-id'] = {:name => 'app-id', :class => HealthVault::WCData::Thing::GuidAndName, :value => nil, :min => 1, :max => 1, :order => 2, :place => :element, :choice => 0 }
    
  @children['app-id'][:value] = HealthVault::WCData::Thing::GuidAndName.new
    
  

  
  @children['person-id'] = {:name => 'person-id', :class => HealthVault::WCData::Thing::GuidAndName, :value => nil, :min => 1, :max => 1, :order => 3, :place => :element, :choice => 0 }
    
  @children['person-id'][:value] = HealthVault::WCData::Thing::GuidAndName.new
    
  

  
  @children['impersonator-id'] = {:name => 'impersonator-id', :class => HealthVault::WCData::Thing::GuidAndName, :value => nil, :min => 0, :max => 1, :order => 4, :place => :element, :choice => 0 }
    
  

  
  @children['access-avenue'] = {:name => 'access-avenue', :class => HealthVault::WCData::Thing::AccessAvenue, :value => nil, :min => 0, :max => 1, :order => 5, :place => :element, :choice => 0 }
    
  

  
  @children['audit-action'] = {:name => 'audit-action', :class => HealthVault::WCData::Thing::AuditAction, :value => nil, :min => 1, :max => 1, :order => 6, :place => :element, :choice => 0 }
    
  @children['audit-action'][:value] = HealthVault::WCData::Thing::AuditAction.new
    
  

end

Dynamic Method Handling

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

Instance Method Details

#access_avenueObject

returns: a HealthVault::WCData::Thing::AccessAvenue



83
84
85
# File 'lib/wc_data/generated/thing/audit.rb', line 83

def access_avenue
  return @children['access-avenue'][:value]
end

#access_avenue=(value) ⇒ Object

value is a HealthVault::WCData::Thing::AccessAvenue



78
79
80
# File 'lib/wc_data/generated/thing/audit.rb', line 78

def access_avenue=(value)
  @children['access-avenue'][:value] = value
end

#app_idObject

returns: a HealthVault::WCData::Thing::GuidAndName



40
41
42
# File 'lib/wc_data/generated/thing/audit.rb', line 40

def app_id
  return @children['app-id'][:value]
end

#app_id=(value) ⇒ Object

value is a HealthVault::WCData::Thing::GuidAndName



35
36
37
# File 'lib/wc_data/generated/thing/audit.rb', line 35

def app_id=(value)
  @children['app-id'][:value] = value
end

#audit_actionObject

returns: a HealthVault::WCData::Thing::AuditAction



97
98
99
# File 'lib/wc_data/generated/thing/audit.rb', line 97

def audit_action
  return @children['audit-action'][:value]
end

#audit_action=(value) ⇒ Object

value is a HealthVault::WCData::Thing::AuditAction



92
93
94
# File 'lib/wc_data/generated/thing/audit.rb', line 92

def audit_action=(value)
  @children['audit-action'][:value] = value
end

#impersonator_idObject

returns: a HealthVault::WCData::Thing::GuidAndName



69
70
71
# File 'lib/wc_data/generated/thing/audit.rb', line 69

def impersonator_id
  return @children['impersonator-id'][:value]
end

#impersonator_id=(value) ⇒ Object

remarks: The impersonator performs the operation on behalf of the person. value is a HealthVault::WCData::Thing::GuidAndName



64
65
66
# File 'lib/wc_data/generated/thing/audit.rb', line 64

def impersonator_id=(value)
  @children['impersonator-id'][:value] = value
end

#person_idObject

returns: a HealthVault::WCData::Thing::GuidAndName



54
55
56
# File 'lib/wc_data/generated/thing/audit.rb', line 54

def person_id
  return @children['person-id'][:value]
end

#person_id=(value) ⇒ Object

value is a HealthVault::WCData::Thing::GuidAndName



49
50
51
# File 'lib/wc_data/generated/thing/audit.rb', line 49

def person_id=(value)
  @children['person-id'][:value] = value
end

#timestampObject

returns: a String



26
27
28
# File 'lib/wc_data/generated/thing/audit.rb', line 26

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

#timestamp=(value) ⇒ Object

remarks: It is up to the application to convert the value to local time if needed. value is a String



21
22
23
# File 'lib/wc_data/generated/thing/audit.rb', line 21

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