Class: Sharepoint::FieldLookup
- Inherits:
-
Field
- Object
- ObjectProperties
- Object
- Field
- Sharepoint::FieldLookup
- Defined in:
- lib/sharepoint-fields.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Object
Attributes inherited from ObjectProperties
Instance Method Summary collapse
Methods included from Type
Methods inherited from Object
#copy, #destroy, #guid, #initialize, #reload, #save
Methods inherited from ObjectProperties
#add_properties, #add_property, #available_properties, #initialize
Instance Method Details
#create ⇒ Object
73 74 75 |
# File 'lib/sharepoint-fields.rb', line 73 def create @site.query :post, create_uri, { parameters: @data }.to_json end |
#create_uri ⇒ Object
65 66 67 68 69 70 71 |
# File 'lib/sharepoint-fields.rb', line 65 def create_uri unless parent.nil? parent.['uri'] + '/fields/addfield' else 'fields/addfield' end end |