Class: Shaf::LinkRelations::LinkRelation

Inherits:
Object
  • Object
show all
Defined in:
lib/shaf/link_relations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject (readonly)

Returns the value of attribute description.



11
12
13
# File 'lib/shaf/link_relations.rb', line 11

def description
  @description
end

#nameObject (readonly)

Returns the value of attribute name.



11
12
13
# File 'lib/shaf/link_relations.rb', line 11

def name
  @name
end

#notesObject (readonly)

Returns the value of attribute notes.



11
12
13
# File 'lib/shaf/link_relations.rb', line 11

def notes
  @notes
end

#referenceObject (readonly)

Returns the value of attribute reference.



11
12
13
# File 'lib/shaf/link_relations.rb', line 11

def reference
  @reference
end