Class: HealthVault::WCData::Request::AuthenticatedSessionInfo

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

#initializeAuthenticatedSessionInfo

Returns a new instance of AuthenticatedSessionInfo.



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/wc_data/generated/request/authenticated_session_info.rb', line 62

def initialize
  super
  self.tag_name = 'authenticatedsessioninfo'

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

  
  @children['user-auth-token'] = {:name => 'user-auth-token', :class => String, :value => nil, :min => 0, :max => 1, :order => 2, :place => :element, :choice => 65176879 }
    
  

  
  @children['offline-person-info'] = {:name => 'offline-person-info', :class => HealthVault::WCData::Request::OfflinePersonInfo, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 65176879 }
    
  

end

Dynamic Method Handling

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

Instance Method Details

#auth_tokenObject

returns: a String



26
27
28
# File 'lib/wc_data/generated/request/authenticated_session_info.rb', line 26

def auth_token
  return @children['auth-token'][:value]
end

#auth_token=(value) ⇒ Object

remarks: This token may specify an application or an application and a user. value is a String



21
22
23
# File 'lib/wc_data/generated/request/authenticated_session_info.rb', line 21

def auth_token=(value)
  @children['auth-token'][:value] = value
end

#offline_person_infoObject

returns: a HealthVault::WCData::Request::OfflinePersonInfo



56
57
58
# File 'lib/wc_data/generated/request/authenticated_session_info.rb', line 56

def offline_person_info
  return @children['offline-person-info'][:value]
end

#offline_person_info=(value) ⇒ Object

remarks: An application that is making an offline request must provide an auth-token. value is a HealthVault::WCData::Request::OfflinePersonInfo



51
52
53
# File 'lib/wc_data/generated/request/authenticated_session_info.rb', line 51

def offline_person_info=(value)
  @children['offline-person-info'][:value] = value
end

#user_auth_tokenObject

returns: a String



41
42
43
# File 'lib/wc_data/generated/request/authenticated_session_info.rb', line 41

def user_auth_token
  return @children['user-auth-token'][:value]
end

#user_auth_token=(value) ⇒ Object

remarks: This token must be issued for the same application that is specified in the auth-token section. value is a String



36
37
38
# File 'lib/wc_data/generated/request/authenticated_session_info.rb', line 36

def user_auth_token=(value)
  @children['user-auth-token'][:value] = value
end