Class: ConceptView::Link
- Inherits:
-
Object
- Object
- ConceptView::Link
- Defined in:
- app/view_models/concept_view.rb
Instance Attribute Summary collapse
-
#caption ⇒ Object
readonly
Returns the value of attribute caption.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(caption, uri, type = nil) ⇒ Link
constructor
A new instance of Link.
Constructor Details
#initialize(caption, uri, type = nil) ⇒ Link
Returns a new instance of Link.
18 19 20 21 22 |
# File 'app/view_models/concept_view.rb', line 18 def initialize(, uri, type = nil) @caption = @uri = uri @type = type end |
Instance Attribute Details
#caption ⇒ Object (readonly)
Returns the value of attribute caption.
16 17 18 |
# File 'app/view_models/concept_view.rb', line 16 def @caption end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
16 17 18 |
# File 'app/view_models/concept_view.rb', line 16 def type @type end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
16 17 18 |
# File 'app/view_models/concept_view.rb', line 16 def uri @uri end |