gitlab-org--gitlab-foss/lib/github/representation/base.rb

31 lines
422 B
Ruby
Raw Normal View History

module Github
module Representation
class Base
2017-04-19 23:04:58 +00:00
def initialize(raw, options = {})
@raw = raw
@options = options
end
2017-04-24 22:04:39 +00:00
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
2017-04-19 23:04:58 +00:00
attr_reader :raw, :options
end
end
end