Module: Octospy::Parser::Gist
- Included in:
- Octospy::Parser
- Defined in:
- lib/octospy/parser/gist.rb
Instance Method Summary collapse
Instance Method Details
#parse_gist_event ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/octospy/parser/gist.rb', line 4 def parse_gist_event unless @event.payload.gist.description.eql? '' title = @event.payload.gist.description else title = '' end { status: "#{@event.payload.action}d gist", title: title, link: @event.payload.gist.html_url, repository: nil } end |