class RestfulSharePoint::List
Public Class Methods
from_title(title, connection)
click to toggle source
# File lib/restful-sharepoint/objects/list.rb, line 4 def self.from_title(title, connection) new(connection: connection).tap do |list| list.define_singleton_method(:endpoint) { "/_api/web/lists/getbytitle('#{URI.encode title}')" } end end
Public Instance Methods
endpoint()
click to toggle source
# File lib/restful-sharepoint/objects/list.rb, line 10 def endpoint "/_api/web/lists(guid'#{@id}')" end