Class: VORuby::Resources::VOResource::V0_10::ShortName

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

Overview

A short name or abbreviation given to something.

Instance Method Summary collapse

Instance Method Details

#value=(short_name) ⇒ Object

Raises:

  • (RuntimeError)


66
67
68
69
70
# File 'lib/voruby/resources/voresource/voresource_v0_10.rb', line 66

def value=(short_name)
  raise RuntimeError, "ShortName '#{short_name}' must have <= 16 characters" if short_name.size > 16
  
  @value = short_name
end