Class: Prismic::Fragments::WebLink
- Defined in:
- lib/prismic/fragments/link.rb
Instance Attribute Summary collapse
-
#url(link_resolver = nil) ⇒ Object
Returns the URL of the link.
Instance Method Summary collapse
-
#initialize(url) ⇒ WebLink
constructor
A new instance of WebLink.
Methods inherited from Link
#as_html, #end_html, #start_html
Methods inherited from Fragment
Constructor Details
#initialize(url) ⇒ WebLink
Returns a new instance of WebLink
32 33 34 |
# File 'lib/prismic/fragments/link.rb', line 32 def initialize(url) @url = url end |
Instance Attribute Details
#url(link_resolver = nil) ⇒ Object
Note:
The link_resolver parameter is accepted but it is not used by this method, so not providing it is perfectly fine.
Returns the URL of the link
44 45 46 |
# File 'lib/prismic/fragments/link.rb', line 44 def url @url end |