Sha256: 183aa862995b21da94ef78b1620fd5da152105ffd1015958875b4cbfbf699585

Contents?: true

Size: 493 Bytes

Versions: 7

Compression:

Stored size: 493 Bytes

Contents

# frozen_string_literal: true

module RubyLokaliseApi
  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

7 entries across 7 versions & 1 rubygems

Version Path
ruby-lokalise-api-7.2.0 lib/ruby_lokalise_api/resources/segment.rb
ruby-lokalise-api-7.1.1 lib/ruby_lokalise_api/resources/segment.rb
ruby-lokalise-api-7.1.0 lib/ruby_lokalise_api/resources/segment.rb
ruby-lokalise-api-7.0.0 lib/ruby_lokalise_api/resources/segment.rb
ruby-lokalise-api-6.2.0 lib/ruby_lokalise_api/resources/segment.rb
ruby-lokalise-api-6.1.0 lib/ruby_lokalise_api/resources/segment.rb
ruby-lokalise-api-6.0.0 lib/ruby_lokalise_api/resources/segment.rb