Class: ConceptView::Link

Inherits:
Object
  • Object
show all
Defined in:
app/view_models/concept_view.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(caption, uri, type = nil)
  @caption = caption
  @uri = uri
  @type = type
end

Instance Attribute Details

#captionObject (readonly)

Returns the value of attribute caption.



16
17
18
# File 'app/view_models/concept_view.rb', line 16

def caption
  @caption
end

#typeObject (readonly)

Returns the value of attribute type.



16
17
18
# File 'app/view_models/concept_view.rb', line 16

def type
  @type
end

#uriObject (readonly)

Returns the value of attribute uri.



16
17
18
# File 'app/view_models/concept_view.rb', line 16

def uri
  @uri
end