Class: CocinaDisplay::Description::Url
- Defined in:
- lib/cocina_display/description/url.rb
Instance Attribute Summary
Attributes inherited from Access
Instance Method Summary collapse
-
#label ⇒ String
The display label for the URL access metadata.
-
#link_text ⇒ String?
The link text for the URL access metadata.
Methods inherited from Access
#contact_email?, #initialize, #to_s, #type
Constructor Details
This class inherits a constructor from CocinaDisplay::Description::Access
Instance Method Details
#label ⇒ String
The display label for the URL access metadata.
6 7 8 |
# File 'lib/cocina_display/description/url.rb', line 6 def label I18n.t(:url, scope: "cocina_display.field_label.access") end |
#link_text ⇒ String?
The link text for the URL access metadata.
12 13 14 |
# File 'lib/cocina_display/description/url.rb', line 12 def link_text cocina["displayLabel"].presence end |