Class: VORuby::Resources::VOResource::V0_9::AuthorityIDType

Inherits:
Object
  • Object
show all
Includes:
XML::Mapping
Defined in:
lib/voruby/resources/voresource/voresource_v0_9.rb,
lib/voruby/resources/voresource/voresource_v0_9.rb

Direct Known Subclasses

AuthorityID

Instance Method Summary collapse

Instance Method Details

#value=(authid) ⇒ Object

Raises:

  • (RuntimeError)


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