2017-04-11 21:34:59 -04:00
|
|
|
module Github
|
|
|
|
module Representation
|
|
|
|
class Base
|
2017-04-19 19:04:58 -04:00
|
|
|
def initialize(raw, options = {})
|
|
|
|
@raw = raw
|
|
|
|
@options = options
|
2017-04-11 21:34:59 -04:00
|
|
|
end
|
|
|
|
|
2017-04-24 18:04:39 -04:00
|
|
|
def id
|
|
|
|
raw['id']
|
|
|
|
end
|
|
|
|
|
2017-04-19 18:14:40 -04:00
|
|
|
def url
|
|
|
|
raw['url']
|
|
|
|
end
|
|
|
|
|
|
|
|
def created_at
|
|
|
|
raw['created_at']
|
|
|
|
end
|
|
|
|
|
|
|
|
def updated_at
|
|
|
|
raw['updated_at']
|
|
|
|
end
|
|
|
|
|
2017-04-11 21:34:59 -04:00
|
|
|
private
|
|
|
|
|
2017-04-19 19:04:58 -04:00
|
|
|
attr_reader :raw, :options
|
2017-04-11 21:34:59 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|