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

27 lines
380 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
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