Class: RestfulSharePoint::Attachment
- Inherits:
-
File
- Object
- CommonBase
- Object
- File
- RestfulSharePoint::Attachment
- Defined in:
- lib/restful-sharepoint/objects/attachment.rb
Constant Summary
Constants inherited from Object
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
Methods inherited from File
#content, #extension, #filename, #name, #size, #url
Methods inherited from Object
#fetch_deferred, #initialize, #method_missing, #properties, #properties=, #respond_to_missing?, #to_json, #values
Methods inherited from CommonBase
Constructor Details
This class inherits a constructor from RestfulSharePoint::Object
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RestfulSharePoint::Object
Instance Method Details
#endpoint ⇒ Object
4 5 6 7 8 |
# File 'lib/restful-sharepoint/objects/attachment.rb', line 4 def endpoint url = URI.parse(connection.site_url) url.path = URI.encode(@properties['ServerRelativeUrl']) url.to_s end |