Class: Prismic::Fragments::ImageLink

Inherits:
Link show all
Defined in:
lib/prismic/fragments/link.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Link

#as_html, #end_html, #start_html

Methods inherited from Fragment

#as_html, #as_text

Constructor Details

#initialize(url) ⇒ ImageLink

Returns a new instance of ImageLink



80
81
82
# File 'lib/prismic/fragments/link.rb', line 80

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

Parameters:

See Also:



92
93
94
# File 'lib/prismic/fragments/link.rb', line 92

def url
  @url
end