Class: DoingStream::Streams::GitHub
- Inherits:
-
DoingStream::Stream::JSONStream
- Object
- DoingStream::Stream::Stream
- DoingStream::Stream::JSONStream
- DoingStream::Streams::GitHub
- Defined in:
- lib/doing_stream/streams/github.rb
Defined Under Namespace
Classes: Entry
Constant Summary collapse
- URI =
'https://api.github.com/users/<%= user %>/events/public'
Instance Attribute Summary
Attributes inherited from DoingStream::Stream::Stream
Instance Method Summary collapse
Methods inherited from DoingStream::Stream::JSONStream
Methods inherited from DoingStream::Stream::Stream
#entry_class, #initialize, #name, #uri
Constructor Details
This class inherits a constructor from DoingStream::Stream::Stream
Instance Method Details
#entries ⇒ Object
5 6 7 |
# File 'lib/doing_stream/streams/github.rb', line 5 def entries @entries ||= super.select { |entry| %w[ForkEvent PublicEvent PushEvent].include? entry.data['type'] } end |