Class: VORuby::Resources::VOResource::V0_10::IdentifierURI
- Defined in:
- lib/voruby/resources/voresource/voresource_v0_10.rb,
lib/voruby/resources/voresource/voresource_v0_10.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#value=(uri) ⇒ Object
84 85 86 87 88 89 |
# File 'lib/voruby/resources/voresource/voresource_v0_10.rb', line 84 def value=(uri) # Strictly, this should be ivo only, but I notice that sometimes http is used. #raise RuntimeError, "IdentifierURI '#{uri}' in wrong format" if !uri.strip.match('^(ivo|http):') @value = URI.parse(uri.strip) end |