Method: Inforouter::Folder#update_access_list

Defined in:
lib/inforouter/folder.rb

#update_access_list(options = {}) ⇒ Boolean



94
95
96
97
98
99
100
101
102
103
104
# File 'lib/inforouter/folder.rb', line 94

def update_access_list(options = {})
  options = { apply_to_tree: false }.merge(options)
  request_params = {
    :path => path,
    'AccessListXML' => access_list.to_xml,
    :apply_to_tree => options[:apply_to_tree] ? 1 : 0
  }
  response = Inforouter.client.request :set_access_list, request_params
  result = Inforouter::Responses::SetAccessList.parse response
  result[:@success] == 'true'
end