mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-13 13:31:19 +00:00
20 lines
307 B
Ruby
20 lines
307 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Bitbucket
|
|
module Representation
|
|
class Base
|
|
attr_reader :raw
|
|
|
|
delegate :present?, to: :raw
|
|
|
|
def initialize(raw)
|
|
@raw = raw
|
|
end
|
|
|
|
def self.decorate(entries)
|
|
entries.map { |entry| new(entry) }
|
|
end
|
|
end
|
|
end
|
|
end
|