Class: Mexico::FileSystem::PointLink

Inherits:
Object
  • Object
show all
Includes:
Poseidon, ROXML
Defined in:
lib/mexico/file_system/point_link.rb

Overview

a link that targets an interval out of a scale object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ PointLink

Returns a new instance of PointLink.



49
50
51
52
53
54
55
# File 'lib/mexico/file_system/point_link.rb', line 49

def initialize(args={})
  args.each do |k,v|
    if self.respond_to?("#{k}=")
      send("#{k}=", v)
    end
  end
end

Instance Attribute Details

#documentObject

Returns the value of attribute document.



38
39
40
# File 'lib/mexico/file_system/point_link.rb', line 38

def document
  @document
end

#itemObject

Returns the value of attribute item.



37
38
39
# File 'lib/mexico/file_system/point_link.rb', line 37

def item
  @item
end

Instance Method Details

#after_parsevoid

This method returns an undefined value.

This method attempts to link objects from other locations of the XML/object tree into position inside this object, by following the xml ids given in the appropriate fields of this class.



75
76
77
# File 'lib/mexico/file_system/point_link.rb', line 75

def after_parse

end

#target_objectMexico::FileSystem::Scale

returns the target object, in this case, a Scale.

Returns:



59
60
61
# File 'lib/mexico/file_system/point_link.rb', line 59

def target_object
  @target_object
end

#target_object=(new_target) ⇒ void

This method returns an undefined value.

Sets a new target object (and updates the corresponding identifier)

Parameters:



66
67
68
69
# File 'lib/mexico/file_system/point_link.rb', line 66

def target_object=(new_target)
  @target_object=new_target
  @target=target_object.identifier
end