Class: Shaf::LinkRelations::LinkRelation
- Inherits:
-
Object
- Object
- Shaf::LinkRelations::LinkRelation
- Defined in:
- lib/shaf/link_relations.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#notes ⇒ Object
readonly
Returns the value of attribute notes.
-
#reference ⇒ Object
readonly
Returns the value of attribute reference.
Instance Method Summary collapse
-
#initialize(name, description, reference, notes) ⇒ LinkRelation
constructor
A new instance of LinkRelation.
Constructor Details
#initialize(name, description, reference, notes) ⇒ LinkRelation
Returns a new instance of LinkRelation.
13 14 15 16 17 18 |
# File 'lib/shaf/link_relations.rb', line 13 def initialize(name, description, reference, notes) @name = name.to_sym @description = description.freeze @reference = reference.freeze @notes = notes.freeze end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
11 12 13 |
# File 'lib/shaf/link_relations.rb', line 11 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/shaf/link_relations.rb', line 11 def name @name end |
#notes ⇒ Object (readonly)
Returns the value of attribute notes.
11 12 13 |
# File 'lib/shaf/link_relations.rb', line 11 def notes @notes end |
#reference ⇒ Object (readonly)
Returns the value of attribute reference.
11 12 13 |
# File 'lib/shaf/link_relations.rb', line 11 def reference @reference end |