Class: HealthVault::WCData::Application::AppPersistentTokens

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

#initializeAppPersistentTokens

Returns a new instance of AppPersistentTokens.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/wc_data/generated/application/app_persistent_tokens.rb', line 43

def initialize
  super
  self.tag_name = 'apppersistenttokens'

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

  
  @children['token-ttl-seconds'] = {:name => 'token-ttl-seconds', :class => String, :value => nil, :min => 0, :max => 1, :order => 2, :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

#enabledObject

returns: a String



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

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

#enabled=(value) ⇒ Object

REQUIRED value is a String



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

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

#token_ttl_secondsObject

returns: a String



37
38
39
# File 'lib/wc_data/generated/application/app_persistent_tokens.rb', line 37

def token_ttl_seconds
  return @children['token-ttl-seconds'][:value]
end

#token_ttl_seconds=(value) ⇒ Object

value is a String



32
33
34
# File 'lib/wc_data/generated/application/app_persistent_tokens.rb', line 32

def token_ttl_seconds=(value)
  @children['token-ttl-seconds'][:value] = value
end