Sha256: 7623c6849a4414d8aaf5fe685d8749b08d8b87974afab190cb47a325582a37da

Contents?: true

Size: 453 Bytes

Versions: 13

Compression:

Stored size: 453 Bytes

Contents

module Legato
  module Management
    class Segment
      extend Finder

      def self.default_path
        "/segments"
      end

      def path
        "/segments/#{id}"
      end

      attr_accessor :id, :name, :definition, :user

      def initialize(attributes, user)
        self.user = user
        self.id = attributes['id']
        self.name = attributes['name']
        self.definition = attributes['definition']
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/legato-0.7.0/lib/legato/management/segment.rb
legato-0.7.0 lib/legato/management/segment.rb
legato-0.6.2 lib/legato/management/segment.rb
legato-0.6.1 lib/legato/management/segment.rb
legato-0.6.0 lib/legato/management/segment.rb
legato-0.5.2 lib/legato/management/segment.rb
legato-0.5.1 lib/legato/management/segment.rb
legato-0.5.0 lib/legato/management/segment.rb
legato-0.4.0 lib/legato/management/segment.rb
legato-0.3.3 lib/legato/management/segment.rb
legato-0.3.2 lib/legato/management/segment.rb
legato-0.3.1 lib/legato/management/segment.rb
legato-0.3.0 lib/legato/management/segment.rb