Class: Sharepoint::List

Inherits:
Object show all
Includes:
Type
Defined in:
lib/sharepoint-lists.rb

Instance Attribute Summary

Attributes inherited from Object

#parent

Attributes inherited from ObjectProperties

#data, #site, #updated_data

Instance Method Summary collapse

Methods included from Type

#initialize

Methods inherited from Object

#copy, #destroy, #guid, #initialize, #reload, #save

Methods inherited from ObjectProperties

#add_properties, #add_property, #available_properties, #initialize

Instance Method Details

#find_items(options = {}) ⇒ Object


69
70
71
72
73
74
75
76
77
78
# File 'lib/sharepoint-lists.rb', line 69

def find_items options = {}
  url = @data['Items']['__deferred']
  has_options = false
  options.each do |key,value|
    url += if has_options then '&' else '?' end
    url += "$#{key}=#{URI::encode value.to_s}"
    has_options = true
  end
  @site.query :get, url
end