Class: GeoConcerns::Discovery::DocumentBuilder::ReferencesBuilder

Inherits:
Object
  • Object
show all
Defined in:
app/services/geo_concerns/discovery/document_builder/references_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(geo_concern, path) ⇒ ReferencesBuilder

Returns a new instance of ReferencesBuilder.



7
8
9
10
# File 'app/services/geo_concerns/discovery/document_builder/references_builder.rb', line 7

def initialize(geo_concern, path)
  @geo_concern = geo_concern
  @path = path
end

Instance Attribute Details

#geo_concernObject (readonly)

Returns the value of attribute geo_concern.



5
6
7
# File 'app/services/geo_concerns/discovery/document_builder/references_builder.rb', line 5

def geo_concern
  @geo_concern
end

#pathObject (readonly)

Returns the value of attribute path.



5
6
7
# File 'app/services/geo_concerns/discovery/document_builder/references_builder.rb', line 5

def path
  @path
end

Instance Method Details

#build(document) ⇒ Object

Builds service reference fields such as thumbnail and download url.

Parameters:



14
15
16
17
18
# File 'app/services/geo_concerns/discovery/document_builder/references_builder.rb', line 14

def build(document)
  document.wxs_identifier = wxs_identifier
  (document)
  build_download_refs(document)
end