Class: HealthVault::WCData::Types::CardSpaceCred
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Types::CardSpaceCred
- Defined in:
- lib/wc_data/generated/types/card_space_cred.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#add_anything(value) ⇒ Object
value is a HealthVault::WCData::ComplexType.
-
#anything ⇒ Object
remarks: The SAML token consists of raw XML that is embedded in the request.
-
#initialize ⇒ CardSpaceCred
constructor
A new instance of CardSpaceCred.
-
#remove_anything(value) ⇒ Object
value is a #HealthVault::WCData::ComplexType.
Methods inherited from ComplexType
#add_new_to_children, #element, #method_missing, #optional_elements, #parse_element, #query_elements, #required_elements, #to_s, #valid?
Constructor Details
#initialize ⇒ CardSpaceCred
Returns a new instance of CardSpaceCred.
37 38 39 40 41 42 43 44 45 |
# File 'lib/wc_data/generated/types/card_space_cred.rb', line 37 def initialize super self.tag_name = 'cardspacecred' @children['anything'] = {:name => 'anything', :class => HealthVault::WCData::ComplexType, :value => Array.new, :min => 1, :max => 999999, :order => 1, :place => :extension, :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
#add_anything(value) ⇒ Object
value is a HealthVault::WCData::ComplexType
18 19 20 |
# File 'lib/wc_data/generated/types/card_space_cred.rb', line 18 def add_anything(value) @children['anything'][:value] << value end |
#anything ⇒ Object
remarks: The SAML token consists of raw XML that is embedded in the request. returns: a HealthVault::WCData::ComplexType Array
31 32 33 |
# File 'lib/wc_data/generated/types/card_space_cred.rb', line 31 def anything return @children['anything'][:value] end |
#remove_anything(value) ⇒ Object
value is a #HealthVault::WCData::ComplexType
23 24 25 |
# File 'lib/wc_data/generated/types/card_space_cred.rb', line 23 def remove_anything(value) @children['anything'][:value].delete(value) end |