Class: RestfulSharePoint::Attachment

Inherits:
File show all
Defined in:
lib/restful-sharepoint/objects/attachment.rb

Constant Summary

Constants inherited from Object

Object::DEFAULT_OPTIONS

Instance Attribute Summary

Attributes inherited from Object

#connection, #options, #properties

Instance Method Summary collapse

Methods inherited from File

#content, #extension, #filename, #name, #size, #url

Methods inherited from Object

#==, #[], #each, #eql?, #fetch_deferred, #initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from RestfulSharePoint::Object

Instance Method Details

#endpointObject



4
5
6
7
8
# File 'lib/restful-sharepoint/objects/attachment.rb', line 4

def endpoint
  url = URI.parse(connection.site_url)
  url.path = Addressable::URI.encode(@properties['ServerRelativeUrl'])
  url.to_s
end