Class: GeoConcerns::Discovery::DocumentBuilder::ReferencesBuilder
- Inherits:
-
Object
- Object
- GeoConcerns::Discovery::DocumentBuilder::ReferencesBuilder
- Defined in:
- app/services/geo_concerns/discovery/document_builder/references_builder.rb
Instance Attribute Summary collapse
-
#geo_concern ⇒ Object
readonly
Returns the value of attribute geo_concern.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#build(document) ⇒ Object
Builds service reference fields such as thumbnail and download url.
-
#initialize(geo_concern, path) ⇒ ReferencesBuilder
constructor
A new instance of ReferencesBuilder.
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_concern ⇒ Object (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 |
#path ⇒ Object (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.
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 |