Class: HealthVault::WCData::Dates::Time

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

#initializeTime

Returns a new instance of Time.



69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# File 'lib/wc_data/generated/dates/time.rb', line 69

def initialize
  super
  self.tag_name = 'time'

  
  @children['h'] = {:name => 'h', :class => HealthVault::WCData::Dates::Hour, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 0 }
    
  @children['h'][:value] = HealthVault::WCData::Dates::Hour.new
    
  

  
  @children['m'] = {:name => 'm', :class => HealthVault::WCData::Dates::Minute, :value => nil, :min => 1, :max => 1, :order => 2, :place => :element, :choice => 0 }
    
  @children['m'][:value] = HealthVault::WCData::Dates::Minute.new
    
  

  
  @children['s'] = {:name => 's', :class => HealthVault::WCData::Dates::Second, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :choice => 0 }
    
  

  
  @children['f'] = {:name => 'f', :class => HealthVault::WCData::Dates::Millisecond, :value => nil, :min => 0, :max => 1, :order => 4, :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

#fObject

returns: a HealthVault::WCData::Dates::Millisecond



63
64
65
# File 'lib/wc_data/generated/dates/time.rb', line 63

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

#f=(value) ⇒ Object

value is a HealthVault::WCData::Dates::Millisecond



58
59
60
# File 'lib/wc_data/generated/dates/time.rb', line 58

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

#hObject

returns: a HealthVault::WCData::Dates::Hour



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

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

#h=(value) ⇒ Object

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



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

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

#mObject

returns: a HealthVault::WCData::Dates::Minute



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

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

#m=(value) ⇒ Object

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



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

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

#sObject

returns: a HealthVault::WCData::Dates::Second



50
51
52
# File 'lib/wc_data/generated/dates/time.rb', line 50

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

#s=(value) ⇒ Object

value is a HealthVault::WCData::Dates::Second



45
46
47
# File 'lib/wc_data/generated/dates/time.rb', line 45

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