Class: UcbRails::Renderer::LdapPersonSearchResultLink

Inherits:
Base
  • Object
show all
Defined in:
app/helpers/ucb_rails/renderer/ldap_person_search_result_link.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#options, #template

Instance Method Summary collapse

Constructor Details

#initialize(template, entry, options = {}) ⇒ LdapPersonSearchResultLink

Returns a new instance of LdapPersonSearchResultLink.



7
8
9
10
# File 'app/helpers/ucb_rails/renderer/ldap_person_search_result_link.rb', line 7

def initialize(template, entry, options={})
  super template, options
  self.entry = entry
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class UcbRails::Renderer::Base

Instance Attribute Details

#entryObject

Returns the value of attribute entry.



5
6
7
# File 'app/helpers/ucb_rails/renderer/ldap_person_search_result_link.rb', line 5

def entry
  @entry
end

Instance Method Details

#htmlObject



12
13
14
# File 'app/helpers/ucb_rails/renderer/ldap_person_search_result_link.rb', line 12

def html
  exists? ? exists_html : button(text, :mini, :primary, link_options)
end