Class: SocialCurrent::GithubService
- Inherits:
-
Service
- Object
- Service
- SocialCurrent::GithubService
show all
- Includes:
- HTTParty
- Defined in:
- lib/social_current/github_service.rb
Instance Method Summary
collapse
Methods inherited from Service
#fetch, #initialize
Instance Method Details
#raw_stream ⇒ Object
10
11
12
|
# File 'lib/social_current/github_service.rb', line 10
def raw_stream
fetch("/users/#{@user}/events", "#{@user}_github_raw_stream.json")
end
|
#raw_user ⇒ Object
6
7
8
|
# File 'lib/social_current/github_service.rb', line 6
def raw_user
fetch("/users/#{@user}", "#{@user}_github_raw_user.json")
end
|
#stream ⇒ Object
14
15
16
17
18
|
# File 'lib/social_current/github_service.rb', line 14
def stream
raw_stream.collect do |s|
{ :message => format_message(s), :created_at => Time.parse(s["created_at"]).utc, :service => "github" }
end
end
|