Class: Resync::CapabilityList
- Inherits:
-
Object
- Object
- Resync::CapabilityList
- Defined in:
- lib/resync/client/mixins/capability_list_extensions.rb
Instance Method Summary collapse
-
#change_dump ⇒ ChangeDump, ...
Downloads and parses the change dump or change dump index.
-
#change_list ⇒ ChangeList, ...
Downloads and parses the change list or change list index.
-
#document_for(capability) ⇒ ResourceList, ...
Downloads and parses the document for the specified capability.
-
#resource_dump ⇒ ResourceDump, ...
Downloads and parses the resource dump or resource dump index.
-
#resource_list ⇒ ResourceList, ...
Downloads and parses the resource list or resource list index.
Instance Method Details
#change_dump ⇒ ChangeDump, ...
Downloads and parses the change dump or change dump index. Subsequent calls will return the same parsed object.
43 44 45 |
# File 'lib/resync/client/mixins/capability_list_extensions.rb', line 43 def change_dump document_for(ChangeDump::CAPABILITY) end |
#change_list ⇒ ChangeList, ...
Downloads and parses the change list or change list index. Subsequent calls will return the same parsed object.
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.
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_dump ⇒ ResourceDump, ...
Downloads and parses the resource dump or resource dump index. Subsequent calls will return the same parsed object.
35 36 37 |
# File 'lib/resync/client/mixins/capability_list_extensions.rb', line 35 def resource_dump document_for(ResourceDump::CAPABILITY) end |
#resource_list ⇒ ResourceList, ...
Downloads and parses the resource list or resource list index. Subsequent calls will return the same parsed object.
19 20 21 |
# File 'lib/resync/client/mixins/capability_list_extensions.rb', line 19 def resource_list document_for(ResourceList::CAPABILITY) end |