2016-08-22 18:45:29 +00:00
|
|
|
module Bitbucket
|
|
|
|
module Representation
|
|
|
|
class Base
|
2017-03-01 08:25:35 +00:00
|
|
|
attr_reader :raw
|
|
|
|
|
2016-08-22 18:45:29 +00:00
|
|
|
def initialize(raw)
|
|
|
|
@raw = raw
|
|
|
|
end
|
|
|
|
|
2016-12-07 12:00:06 +00:00
|
|
|
def self.decorate(entries)
|
|
|
|
entries.map { |entry| new(entry)}
|
|
|
|
end
|
2016-08-22 18:45:29 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|