Class: VORuby::VOResource::Mapping::UtcTimestampNode

Inherits:
DateTimeNode
  • Object
show all
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

Raises:

  • (RuntimeError)


33
34
35
36
# File 'lib/voruby/resources/nodes.rb', line 33

def set_attr_value(xml, value)
  raise RuntimeError, "Not a date/time: #{value}" unless Time === value
  @path.first(xml, :ensure_created => true).text = value.to_s
end