debian-mirror-gitlab/lib/github/representation/base.rb
2017-08-17 22:00:37 +05:30

31 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