Class: VORuby::Resources::VOResource::V0_10::AuthorityID
- Inherits:
-
Object
- Object
- VORuby::Resources::VOResource::V0_10::AuthorityID
show all
- Includes:
- XML::Mapping
- Defined in:
- lib/voruby/resources/voresource/voresource_v0_10.rb,
lib/voruby/resources/voresource/voresource_v0_10.rb
Instance Method Summary
collapse
Instance Method Details
#value=(authid) ⇒ Object
238
239
240
241
242
|
# File 'lib/voruby/resources/voresource/voresource_v0_10.rb', line 238
def value=(authid)
raise RuntimeError, "AuthorityID '#{authid} in wrong format" if !authid.match(/^[\w\d][\w\d\-_\.!~\*'\(\)\+=]{2,}$/)
@value = authid
end
|