Class: VORuby::Resources::VOResource::V0_9::AuthorityIDType
- Includes:
- XML::Mapping
- Defined in:
- lib/voruby/resources/voresource/voresource_v0_9.rb,
lib/voruby/resources/voresource/voresource_v0_9.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#value=(authid) ⇒ Object
126 127 128 129 130 |
# File 'lib/voruby/resources/voresource/voresource_v0_9.rb', line 126 def value=(authid) raise RuntimeError, "AuthorityID '#{authid} in wrong format" if !authid.match(/^[\w\d][\w\d\-_\.!~\*'\(\)]{2,}$/) @value = authid end |