Class: DoingStream::Streams::GitHub

Inherits:
DoingStream::Stream::JSONStream show all
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

#user

Instance Method Summary collapse

Methods inherited from DoingStream::Stream::JSONStream

#body, #json

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

#entriesObject



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