gitlab-org--gitlab-foss/lib/github/representation/base.rb
2017-04-24 19:04:39 -03:00

30 lines
422 B
Ruby

module Github
module Representation
class Base
def initialize(raw, options = {})
@raw = raw
@options = options
end
def id
raw['id']
end
def url
raw['url']
end
def created_at
raw['created_at']
end
def updated_at
raw['updated_at']
end
private
attr_reader :raw, :options
end
end
end