Add Github::Representation::Base#id
This commit is contained in:
parent
2b7328c317
commit
9bdde5796a
|
@ -6,6 +6,10 @@ module Github
|
|||
@options = options
|
||||
end
|
||||
|
||||
def id
|
||||
raw['id']
|
||||
end
|
||||
|
||||
def url
|
||||
raw['url']
|
||||
end
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
module Github
|
||||
module Representation
|
||||
class Repo < Representation::Base
|
||||
def id
|
||||
raw['id']
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
module Github
|
||||
module Representation
|
||||
class User < Representation::Base
|
||||
def id
|
||||
raw['id']
|
||||
end
|
||||
|
||||
def email
|
||||
return @email if defined?(@email)
|
||||
|
||||
|
|
Loading…
Reference in New Issue