Class: OctocatHerder::PullRequest::Repo
- Inherits:
-
Base
- Object
- Base
- OctocatHerder::PullRequest::Repo
show all
- Defined in:
- lib/octocat_herder/pull_request/repo.rb
Instance Attribute Summary
Attributes inherited from Base
#connection, #raw
Instance Method Summary
collapse
Methods inherited from Base
#available_attributes, #initialize, #method_missing
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class OctocatHerder::Base
Instance Method Details
#addtional_attributes ⇒ Object
32
33
34
|
# File 'lib/octocat_herder/pull_request/repo.rb', line 32
def addtional_attributes
['user_login', 'user_id', 'user_avatar_url', 'user_url']
end
|
#repo ⇒ Object
28
29
30
|
# File 'lib/octocat_herder/pull_request/repo.rb', line 28
def repo
@repo = OctocatHerder::Repository.new(@raw['repo'], connection)
end
|
#user ⇒ Object
24
25
26
|
# File 'lib/octocat_herder/pull_request/repo.rb', line 24
def user
@user = OctocatHerder::User.fetch(@raw['user'], connection)
end
|
#user_avatar_url ⇒ Object
16
17
18
|
# File 'lib/octocat_herder/pull_request/repo.rb', line 16
def user_avatar_url
@raw['user']['avatar_url']
end
|
#user_id ⇒ Object
12
13
14
|
# File 'lib/octocat_herder/pull_request/repo.rb', line 12
def user_id
@raw['user']['id']
end
|
#user_login ⇒ Object
8
9
10
|
# File 'lib/octocat_herder/pull_request/repo.rb', line 8
def user_login
@raw['user']['login']
end
|
#user_url ⇒ Object
20
21
22
|
# File 'lib/octocat_herder/pull_request/repo.rb', line 20
def user_url
@raw['user']['url']
end
|