Sha256: 40634a6f54c6fad98fecf9f479cecc5f0c60100e324a65ab54b3dacce9aab582
Contents?: true
Size: 760 Bytes
Versions: 7
Compression:
Stored size: 760 Bytes
Contents
# frozen_string_literal: true module RubyLokaliseApi module Resources class Branch < Base ID_KEY = 'branch_id' supports :update, :destroy, [:reload_data, '', :find] def merge(params = {}) klass = self.class klass.merge @client, klass.endpoint(project_id, branch_id, :merge), params end class << self def merge(client, path, params, *_args) post(path, client, params)['content'] end def endpoint(project_id, branch_id = nil, action = nil) params = {projects: project_id, branches: branch_id} params[:merge] = '' if action == :merge path_from params end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems