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)
|
|
|
|
entries.map { |entry| new(entry)}
|
|
|
|
end
|
2016-08-22 14:45:29 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|