Class: Alfresco4r::DocumentDownloadUrl

Inherits:
Object
  • Object
show all
Defined in:
lib/alfresco4r/abstract_service.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ DocumentDownloadUrl

Returns a new instance of DocumentDownloadUrl.



92
93
94
# File 'lib/alfresco4r/abstract_service.rb', line 92

def initialize(options)
  @options = options
end

Instance Method Details

#url(node_id) ⇒ Object



96
97
98
99
# File 'lib/alfresco4r/abstract_service.rb', line 96

def url(node_id)
  download_url = @options[:download_url].concat("/").concat(node_id).strip
  return download_url.to_s
end