Sha256: dc2dae9742cff3d4610ba655f20e786459b64d9bb33c2e1463acf5ea79aacdb3

Contents?: true

Size: 427 Bytes

Versions: 5

Compression:

Stored size: 427 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,
          none_repository: true
        }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
octospy-0.0.5 lib/octospy/parser/gist.rb
octospy-0.0.4 lib/octospy/parser/gist.rb
octospy-0.0.3 lib/octospy/parser/gist.rb
octospy-0.0.2 lib/octospy/parser/gist.rb
octospy-0.0.1 lib/octospy/parser/gist.rb