Sha256: 3c655a1130d7323e99f22a270431b5bb757c4c55548ab54c5aa131ce615e3df8

Contents?: true

Size: 486 Bytes

Versions: 3

Compression:

Stored size: 486 Bytes

Contents

# frozen_string_literal: true

module Lokalise
  module Resources
    class Segment < Base
      DATA_KEY = 'Segment'
      ID_KEY = 'segment_number'
      supports :update, [:reload_data, '', :find]

      class << self
        def endpoint(project_id, key_id, lang_iso, segment_number = nil)
          path_from projects: project_id,
                    keys: key_id,
                    segments: [lang_iso, segment_number]
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-lokalise-api-5.0.0 lib/ruby-lokalise-api/resources/segment.rb
ruby-lokalise-api-4.5.1 lib/ruby-lokalise-api/resources/segment.rb
ruby-lokalise-api-4.5.0 lib/ruby-lokalise-api/resources/segment.rb