Class: VORuby::VOResource::Mapping::UtcDateTimeNode
- Inherits:
-
DateTimeNode
- Object
- XML::Mapping::SingleAttributeNode
- DateTimeNode
- VORuby::VOResource::Mapping::UtcDateTimeNode
- Defined in:
- lib/voruby/resources/nodes.rb
Instance Method Summary collapse
Methods inherited from DateTimeNode
#extract_attr_value, #initialize_impl
Instance Method Details
#set_attr_value(xml, value) ⇒ Object
40 41 42 43 |
# File 'lib/voruby/resources/nodes.rb', line 40 def set_attr_value(xml, value) raise RuntimeError, "Not a date/time: #{value}" unless Time === value @path.first(xml, :ensure_created => true).text = value.getutc.xmlschema end |