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

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

#initializeToken

Returns a new instance of Token.



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

def initialize
  super
  self.tag_name = 'token'

  
  @children['data'] = {:name => 'data', :class => HealthVault::WCData::Types::Stringz1024, :value => nil, :min => 1, :max => 1, :order => 0, :place => :extension, :choice => 0 }
    
  @children['data'][:value] = HealthVault::WCData::Types::Stringz1024.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
    
  

  
  @children['app-record-auth-action'] = {:name => 'app-record-auth-action', :class => HealthVault::WCData::Auth::AppRecordAuthAction, :value => nil, :min => 1, :max => 1, :order => 0, :place => :attribute, :choice => 0 }
    
  @children['app-record-auth-action'][:value] = HealthVault::WCData::Auth::AppRecordAuthAction.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



39
40
41
# File 'lib/wc_data/generated/auth/token.rb', line 39

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

#app_id=(value) ⇒ Object

remarks: This application id will be the same as the one specified in the request. value is a HealthVault::WCData::Types::Guid



34
35
36
# File 'lib/wc_data/generated/auth/token.rb', line 34

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

#app_record_auth_actionObject

returns: a HealthVault::WCData::Auth::AppRecordAuthAction



54
55
56
# File 'lib/wc_data/generated/auth/token.rb', line 54

def app_record_auth_action
  return @children['app-record-auth-action'][:value]
end

#app_record_auth_action=(value) ⇒ Object

remarks: If there are actions required, then the enumeration value describes the required user action to successfully create a token. value is a HealthVault::WCData::Auth::AppRecordAuthAction



49
50
51
# File 'lib/wc_data/generated/auth/token.rb', line 49

def app_record_auth_action=(value)
  @children['app-record-auth-action'][:value] = value
end

#dataObject

returns: a HealthVault::WCData::Types::Stringz1024



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

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

#data=(value) ⇒ Object

REQUIRED value is a HealthVault::WCData::Types::Stringz1024



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

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