Class: Prismic::Fragments::ImageLink
- 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)  ⇒ ImageLink 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ImageLink.
 
Methods inherited from Link
#as_html, #end_html, #start_html
Methods inherited from Fragment
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
      92 93 94  | 
    
      # File 'lib/prismic/fragments/link.rb', line 92 def url @url end  |