Class: Exlibris::Primo::Link
- Inherits:
-
Object
- Object
- Exlibris::Primo::Link
- Includes:
- Abstract, Config::Attributes, WriteAttributes
- Defined in:
- lib/exlibris/primo/link.rb
Overview
Abstract class representing a link in Primo.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#display ⇒ Object
Returns the value of attribute display.
-
#display_code ⇒ Object
Returns the value of attribute display_code.
-
#institution ⇒ Object
Returns the value of attribute institution.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#original_id ⇒ Object
Returns the value of attribute original_id.
-
#record_id ⇒ Object
Returns the value of attribute record_id.
-
#subfields ⇒ Object
Returns the value of attribute subfields.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Link
constructor
A new instance of Link.
Methods included from WriteAttributes
Methods included from Config::Attributes
#availability_statuses, #base_url, #config, #facet_collections, #facet_labels, #facet_resource_types, #facet_top_level, #institutions, #libraries, #sources
Methods included from Abstract
Constructor Details
#initialize(*args) ⇒ Link
Returns a new instance of Link.
16 17 18 19 20 21 |
# File 'lib/exlibris/primo/link.rb', line 16 def initialize *args # URLs may have XML escaped ampersands # so we need to account for that. args.last[:url].gsub!("&", "&") unless args.last.nil? super(*args) end |
Instance Attribute Details
#display ⇒ Object
Returns the value of attribute display.
13 14 15 |
# File 'lib/exlibris/primo/link.rb', line 13 def display @display end |
#display_code ⇒ Object
Returns the value of attribute display_code.
13 14 15 |
# File 'lib/exlibris/primo/link.rb', line 13 def display_code @display_code end |
#institution ⇒ Object
Returns the value of attribute institution.
13 14 15 |
# File 'lib/exlibris/primo/link.rb', line 13 def institution @institution end |
#notes ⇒ Object
Returns the value of attribute notes.
13 14 15 |
# File 'lib/exlibris/primo/link.rb', line 13 def notes @notes end |
#original_id ⇒ Object
Returns the value of attribute original_id.
13 14 15 |
# File 'lib/exlibris/primo/link.rb', line 13 def original_id @original_id end |
#record_id ⇒ Object
Returns the value of attribute record_id.
13 14 15 |
# File 'lib/exlibris/primo/link.rb', line 13 def record_id @record_id end |
#subfields ⇒ Object
Returns the value of attribute subfields.
13 14 15 |
# File 'lib/exlibris/primo/link.rb', line 13 def subfields @subfields end |
#url ⇒ Object
Returns the value of attribute url.
13 14 15 |
# File 'lib/exlibris/primo/link.rb', line 13 def url @url end |