Class: GeoConcerns::Discovery::GeoblacklightDocument
- Inherits:
-
AbstractDocument
- Object
- AbstractDocument
- GeoConcerns::Discovery::GeoblacklightDocument
- Defined in:
- app/services/geo_concerns/discovery/geoblacklight_document.rb
Overview
For details on the schema,
Constant Summary collapse
- GEOBLACKLIGHT_RELEASE_VERSION =
'v1.1.2'.freeze
- GEOBLACKLIGHT_SCHEMA =
JSON.parse(open("https://raw.githubusercontent.com/geoblacklight/geoblacklight/#{GEOBLACKLIGHT_RELEASE_VERSION}/schema/geoblacklight-schema.json").read).freeze
Instance Attribute Summary
Attributes inherited from AbstractDocument
#access_rights, #creator, #dct_references, #description, #download, #fgdc, #format, #geom_type, #identifier, #iso19139, #issued, #language, #layer_modified, #layer_year, #mods, #provenance, #publisher, #resource_type, #slug, #solr_coverage, #spatial, #subject, #temporal, #thumbnail, #title, #url, #wfs_path, #wms_path, #wxs_identifier
Instance Method Summary collapse
-
#to_hash(_args = nil) ⇒ Hash
Implements the to_hash method on the abstract document.
-
#to_json(_args = nil) ⇒ String
Implements the to_json method on the abstract document.
Methods inherited from AbstractDocument
Instance Method Details
#to_hash(_args = nil) ⇒ Hash
Implements the to_hash method on the abstract document.
15 16 17 18 |
# File 'app/services/geo_concerns/discovery/geoblacklight_document.rb', line 15 def to_hash(_args = nil) return {} unless rights document end |
#to_json(_args = nil) ⇒ String
Implements the to_json method on the abstract document.
23 24 25 26 |
# File 'app/services/geo_concerns/discovery/geoblacklight_document.rb', line 23 def to_json(_args = nil) return '{}' unless rights document.to_json end |