Add Github::Representation::Base#id

parent 2b7328c3
...@@ -6,6 +6,10 @@ module Github ...@@ -6,6 +6,10 @@ module Github
@options = options @options = options
end end
def id
raw['id']
end
def url def url
raw['url'] raw['url']
end end
......
module Github module Github
module Representation module Representation
class Repo < Representation::Base class Repo < Representation::Base
def id
raw['id']
end
end end
end end
end end
module Github module Github
module Representation module Representation
class User < Representation::Base class User < Representation::Base
def id
raw['id']
end
def email def email
return @email if defined?(@email) return @email if defined?(@email)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment