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 19:04:58 -04:00
def initialize(raw, options = {})
@raw = raw
@options = options
end
2017-04-24 18:04:39 -04: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 19:04:58 -04:00
attr_reader :raw, :options
end
end
end