Class: VORuby::STC::V1_10::STC::RegionFileType
- Inherits:
-
SpatialIntervalType
- Object
- SpatialIntervalType
- VORuby::STC::V1_10::STC::RegionFileType
- Defined in:
- lib/voruby/stc/1.10/stc.rb
Overview
Points to a Region file
Direct Known Subclasses
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
Class Method Summary collapse
Instance Method Summary collapse
- #==(f) ⇒ Object
-
#initialize(options = {}) ⇒ RegionFileType
constructor
A new instance of RegionFileType.
- #to_xml(name = nil) ⇒ Object
Methods included from SerializableToXml
Constructor Details
#initialize(options = {}) ⇒ RegionFileType
Returns a new instance of RegionFileType.
2274 2275 2276 2277 |
# File 'lib/voruby/stc/1.10/stc.rb', line 2274 def initialize(={}) raise_argument_required_error('file') if !.has_key?(:file) super() end |
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
2272 2273 2274 |
# File 'lib/voruby/stc/1.10/stc.rb', line 2272 def file @file end |
Class Method Details
.from_xml(xml) ⇒ Object
2298 2299 2300 2301 2302 2303 2304 2305 2306 |
# File 'lib/voruby/stc/1.10/stc.rb', line 2298 def self.from_xml(xml) root = element_from(xml) = { :file => URI.parse(REXML::XPath.first(root, 'x:File', {'x' => obj_ns.uri}).text) } self.new() end |
Instance Method Details
#==(f) ⇒ Object
2284 2285 2286 |
# File 'lib/voruby/stc/1.10/stc.rb', line 2284 def ==(f) self.file == f.file end |