Sha256: 517a4dcd800bd61e31312a803f3d0900d7d8f74ec02094bd5c33f7e818f368af
Contents?: true
Size: 626 Bytes
Versions: 8
Compression:
Stored size: 626 Bytes
Contents
# frozen_string_literal: true module Lokalise module Resources class Snapshot < Base supports :destroy def restore self.class.restore @client, @path end class << self def restore(client, path, *_args) klass = Lokalise::Resources::Project klass.new post(path, client), ->(project_id, *_ids) { klass.endpoint(project_id) } end def endpoint(project_id, snapshot_id = nil) path_from projects: project_id, snapshots: snapshot_id end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems