Class: HealthVault::WCData::Methods::Response::CreateAuthenticatedSessionToken::AppAuthTokenAbsenceReason

Inherits:
ComplexType
  • Object
show all
Defined in:
lib/wc_data/generated/methods/response/create_authenticated_session_token/app_auth_token_absence_reason.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

#initializeAppAuthTokenAbsenceReason

Returns a new instance of AppAuthTokenAbsenceReason.



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/wc_data/generated/methods/response/create_authenticated_session_token/app_auth_token_absence_reason.rb', line 47

def initialize
  super
  self.tag_name = 'appauthtokenabsencereason'

  
  @children['data'] = {:name => 'data', :class => HealthVault::WCData::Methods::Response::CreateAuthenticatedSessionToken::AuthTokenAbsenceReason, :value => nil, :min => 1, :max => 1, :order => 0, :place => :extension, :choice => 0 }
    
  @children['data'][:value] = HealthVault::WCData::Methods::Response::CreateAuthenticatedSessionToken::AuthTokenAbsenceReason.new
    
  

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

end

Dynamic Method Handling

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

Instance Method Details

#app_idObject

returns: a HealthVault::WCData::Types::Guid



41
42
43
# File 'lib/wc_data/generated/methods/response/create_authenticated_session_token/app_auth_token_absence_reason.rb', line 41

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

#app_id=(value) ⇒ Object

remarks: See the specific absence reasons for user-actionable details. value is a HealthVault::WCData::Types::Guid



36
37
38
# File 'lib/wc_data/generated/methods/response/create_authenticated_session_token/app_auth_token_absence_reason.rb', line 36

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

#dataObject

returns: a HealthVault::WCData::Methods::Response::CreateAuthenticatedSessionToken::AuthTokenAbsenceReason



26
27
28
# File 'lib/wc_data/generated/methods/response/create_authenticated_session_token/app_auth_token_absence_reason.rb', line 26

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

#data=(value) ⇒ Object

REQUIRED value is a HealthVault::WCData::Methods::Response::CreateAuthenticatedSessionToken::AuthTokenAbsenceReason



21
22
23
# File 'lib/wc_data/generated/methods/response/create_authenticated_session_token/app_auth_token_absence_reason.rb', line 21

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