Sha256: 1d4b3fc9d559f36c87af787023e4577a812af9ccc184e58ceb7b5bfcc0302f4e

Contents?: true

Size: 421 Bytes

Versions: 6

Compression:

Stored size: 421 Bytes

Contents

module Octospy
  class Parser
    module Gist
      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
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
octospy-0.2.0 lib/octospy/parser/gist.rb
octospy-0.1.1 lib/octospy/parser/gist.rb
octospy-0.1.0 lib/octospy/parser/gist.rb
octospy-0.0.8 lib/octospy/parser/gist.rb
octospy-0.0.7 lib/octospy/parser/gist.rb
octospy-0.0.6 lib/octospy/parser/gist.rb