Class: OpenXml::Parts::Rels::Relationship
- Inherits:
-
Struct
- Object
- Struct
- OpenXml::Parts::Rels::Relationship
- Defined in:
- lib/openxml/parts/rels.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#target ⇒ Object
Returns the value of attribute target.
-
#target_mode ⇒ Object
Returns the value of attribute target_mode.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, target, id = nil, target_mode = nil) ⇒ Relationship
constructor
A new instance of Relationship.
Constructor Details
#initialize(type, target, id = nil, target_mode = nil) ⇒ Relationship
Returns a new instance of Relationship.
49 50 51 |
# File 'lib/openxml/parts/rels.rb', line 49 def initialize(type, target, id=nil, target_mode=nil) super type, target, id || "R#{SecureRandom.hex}", target_mode end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
48 49 50 |
# File 'lib/openxml/parts/rels.rb', line 48 def id @id end |
#target ⇒ Object
Returns the value of attribute target
48 49 50 |
# File 'lib/openxml/parts/rels.rb', line 48 def target @target end |
#target_mode ⇒ Object
Returns the value of attribute target_mode
48 49 50 |
# File 'lib/openxml/parts/rels.rb', line 48 def target_mode @target_mode end |
#type ⇒ Object
Returns the value of attribute type
48 49 50 |
# File 'lib/openxml/parts/rels.rb', line 48 def type @type end |