Module: Contentful::Management::Resource::Refresher
- Included in:
- ApiKey, Asset, ContentType, EditorInterface, Entry, Environment, Locale, Organization, OrganizationPeriodicUsage, PersonalAccessToken, PreviewApiKey, Contentful::Management::Role, Snapshot, Space, SpaceMembership, SpacePeriodicUsage, Tag, UIExtension, Upload, User, Webhook, WebhookCall, WebhookHealth
- Defined in:
- lib/contentful/management/resource/refresher.rb
Overview
Adds the feature to have properties and system data reload for Resource.
Instance Method Summary collapse
-
#reload ⇒ Object
Reload an object Updates the current version of the object to the version on the system.
Instance Method Details
#reload ⇒ Object
Reload an object Updates the current version of the object to the version on the system
10 11 12 13 |
# File 'lib/contentful/management/resource/refresher.rb', line 10 def reload resource = refresh_find refresh_data(resource) if resource.is_a? self.class end |