Class: GeoConcerns::Discovery::AbstractDocument
- Inherits:
-
Object
- Object
- GeoConcerns::Discovery::AbstractDocument
- Defined in:
- app/services/geo_concerns/discovery/abstract_document.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#access_rights ⇒ Object
Returns the value of attribute access_rights.
-
#creator ⇒ Object
Returns the value of attribute creator.
-
#dct_references ⇒ Object
Returns the value of attribute dct_references.
-
#description ⇒ Object
Returns the value of attribute description.
-
#download ⇒ Object
Returns the value of attribute download.
-
#fgdc ⇒ Object
Returns the value of attribute fgdc.
-
#format ⇒ Object
Returns the value of attribute format.
-
#geom_type ⇒ Object
Returns the value of attribute geom_type.
-
#identifier ⇒ Object
Returns the value of attribute identifier.
-
#iso19139 ⇒ Object
Returns the value of attribute iso19139.
-
#issued ⇒ Object
Returns the value of attribute issued.
-
#language ⇒ Object
Returns the value of attribute language.
-
#layer_modified ⇒ Object
Returns the value of attribute layer_modified.
-
#layer_year ⇒ Object
Returns the value of attribute layer_year.
-
#mods ⇒ Object
Returns the value of attribute mods.
-
#provenance ⇒ Object
Returns the value of attribute provenance.
-
#publisher ⇒ Object
Returns the value of attribute publisher.
-
#resource_type ⇒ Object
Returns the value of attribute resource_type.
-
#slug ⇒ Object
Returns the value of attribute slug.
-
#solr_coverage ⇒ Object
Returns the value of attribute solr_coverage.
-
#spatial ⇒ Object
Returns the value of attribute spatial.
-
#subject ⇒ Object
Returns the value of attribute subject.
-
#temporal ⇒ Object
Returns the value of attribute temporal.
-
#thumbnail ⇒ Object
Returns the value of attribute thumbnail.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
-
#wfs_path ⇒ Object
Returns the value of attribute wfs_path.
-
#wms_path ⇒ Object
Returns the value of attribute wms_path.
-
#wxs_identifier ⇒ Object
Returns the value of attribute wxs_identifier.
Instance Method Summary collapse
-
#clean_document(hash) ⇒ Hash
Cleans the document hash by removing unused fields.
- #to_hash(_arg) ⇒ Object
- #to_json(_arg) ⇒ Object
- #to_xml(_arg) ⇒ Object
Instance Attribute Details
#access_rights ⇒ Object
Returns the value of attribute access_rights.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def access_rights @access_rights end |
#creator ⇒ Object
Returns the value of attribute creator.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def creator @creator end |
#dct_references ⇒ Object
Returns the value of attribute dct_references.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def dct_references @dct_references end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def description @description end |
#download ⇒ Object
Returns the value of attribute download.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def download @download end |
#fgdc ⇒ Object
Returns the value of attribute fgdc.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def fgdc @fgdc end |
#format ⇒ Object
Returns the value of attribute format.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def format @format end |
#geom_type ⇒ Object
Returns the value of attribute geom_type.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def geom_type @geom_type end |
#identifier ⇒ Object
Returns the value of attribute identifier.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def identifier @identifier end |
#iso19139 ⇒ Object
Returns the value of attribute iso19139.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def iso19139 @iso19139 end |
#issued ⇒ Object
Returns the value of attribute issued.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def issued @issued end |
#language ⇒ Object
Returns the value of attribute language.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def language @language end |
#layer_modified ⇒ Object
Returns the value of attribute layer_modified.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def layer_modified @layer_modified end |
#layer_year ⇒ Object
Returns the value of attribute layer_year.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def layer_year @layer_year end |
#mods ⇒ Object
Returns the value of attribute mods.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def mods @mods end |
#provenance ⇒ Object
Returns the value of attribute provenance.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def provenance @provenance end |
#publisher ⇒ Object
Returns the value of attribute publisher.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def publisher @publisher end |
#resource_type ⇒ Object
Returns the value of attribute resource_type.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def resource_type @resource_type end |
#slug ⇒ Object
Returns the value of attribute slug.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def slug @slug end |
#solr_coverage ⇒ Object
Returns the value of attribute solr_coverage.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def solr_coverage @solr_coverage end |
#spatial ⇒ Object
Returns the value of attribute spatial.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def spatial @spatial end |
#subject ⇒ Object
Returns the value of attribute subject.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def subject @subject end |
#temporal ⇒ Object
Returns the value of attribute temporal.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def temporal @temporal end |
#thumbnail ⇒ Object
Returns the value of attribute thumbnail.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def thumbnail @thumbnail end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def title @title end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def url @url end |
#wfs_path ⇒ Object
Returns the value of attribute wfs_path.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def wfs_path @wfs_path end |
#wms_path ⇒ Object
Returns the value of attribute wms_path.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def wms_path @wms_path end |
#wxs_identifier ⇒ Object
Returns the value of attribute wxs_identifier.
4 5 6 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 4 def wxs_identifier @wxs_identifier end |
Instance Method Details
#clean_document(hash) ⇒ Hash
Cleans the document hash by removing unused fields.
14 15 16 17 18 19 20 21 22 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 14 def clean_document(hash) hash.delete_if do |_k, v| begin v.nil? || v.empty? rescue false end end end |
#to_hash(_arg) ⇒ Object
24 25 26 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 24 def to_hash(_arg) raise 'this method should be overriden and return the document as a hash' end |
#to_json(_arg) ⇒ Object
28 29 30 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 28 def to_json(_arg) raise 'this method should be overriden and return the document as json' end |
#to_xml(_arg) ⇒ Object
32 33 34 |
# File 'app/services/geo_concerns/discovery/abstract_document.rb', line 32 def to_xml(_arg) raise 'this method should be overriden and return the document as xml' end |