Class: Resync::CapabilityList

Inherits:
Object
  • Object
show all
Defined in:
lib/resync/client/mixins/capability_list_extensions.rb

Instance Method Summary collapse

Instance Method Details

#change_dumpChangeDump, ...

Downloads and parses the change dump or change dump index. Subsequent calls will return the same parsed object.

Returns:



43
44
45
# File 'lib/resync/client/mixins/capability_list_extensions.rb', line 43

def change_dump
  document_for(ChangeDump::CAPABILITY)
end

#change_listChangeList, ...

Downloads and parses the change list or change list index. Subsequent calls will return the same parsed object.

Returns:



27
28
29
# File 'lib/resync/client/mixins/capability_list_extensions.rb', line 27

def change_list
  document_for(ChangeList::CAPABILITY)
end

#document_for(capability) ⇒ ResourceList, ...

Downloads and parses the document for the specified capability. Subsequent calls will return the same parsed object.

Returns:



10
11
12
13
# File 'lib/resync/client/mixins/capability_list_extensions.rb', line 10

def document_for(capability)
  @documents ||= {}
  @documents[capability] ||= get_and_parse_resource_for(capability)
end

#resource_dumpResourceDump, ...

Downloads and parses the resource dump or resource dump index. Subsequent calls will return the same parsed object.

Returns:



35
36
37
# File 'lib/resync/client/mixins/capability_list_extensions.rb', line 35

def resource_dump
  document_for(ResourceDump::CAPABILITY)
end

#resource_listResourceList, ...

Downloads and parses the resource list or resource list index. Subsequent calls will return the same parsed object.

Returns:



19
20
21
# File 'lib/resync/client/mixins/capability_list_extensions.rb', line 19

def resource_list
  document_for(ResourceList::CAPABILITY)
end