Class: HealthVault::WCData::Dates::Approxdatetime

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

#initializeApproxdatetime

Returns a new instance of Approxdatetime.



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

def initialize
  super
  self.tag_name = 'approx-date-time'

  
  @children['structured'] = {:name => 'structured', :class => HealthVault::WCData::Dates::StructuredApproxDate, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 244044714 }
    
  

  
  @children['descriptive'] = {:name => 'descriptive', :class => String, :value => nil, :min => 1, :max => 1, :order => 2, :place => :element, :choice => 244044714 }
    
  

end

Dynamic Method Handling

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

Instance Method Details

#descriptiveObject

returns: a String



37
38
39
# File 'lib/wc_data/generated/dates/approx_date_time.rb', line 37

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

#descriptive=(value) ⇒ Object

REQUIRED value is a String



32
33
34
# File 'lib/wc_data/generated/dates/approx_date_time.rb', line 32

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

#structuredObject

returns: a HealthVault::WCData::Dates::StructuredApproxDate



24
25
26
# File 'lib/wc_data/generated/dates/approx_date_time.rb', line 24

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

#structured=(value) ⇒ Object

REQUIRED value is a HealthVault::WCData::Dates::StructuredApproxDate



19
20
21
# File 'lib/wc_data/generated/dates/approx_date_time.rb', line 19

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