2018-10-06 19:10:08 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-08-22 14:45:29 -04:00
|
|
|
module Bitbucket
|
|
|
|
module Representation
|
|
|
|
class Base
|
2017-03-01 03:25:35 -05:00
|
|
|
attr_reader :raw
|
|
|
|
|
2016-08-22 14:45:29 -04:00
|
|
|
def initialize(raw)
|
|
|
|
@raw = raw
|
|
|
|
end
|
|
|
|
|
2016-12-07 07:00:06 -05:00
|
|
|
def self.decorate(entries)
|
2022-08-17 05:11:44 -04:00
|
|
|
entries.map { |entry| new(entry) }
|
2016-12-07 07:00:06 -05:00
|
|
|
end
|
2016-08-22 14:45:29 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|