Sha256: c8628e0d7ee0dfe51536714806de4e72cf77e0077138486367d97250d80198e2

Contents?: true

Size: 284 Bytes

Versions: 18

Compression:

Stored size: 284 Bytes

Contents

require "github/comment_event"

module Github
  class IssueCommentEvent < CommentEvent

    def initialize(payload)
      super
      comment["issue"] = payload.fetch "issue"
    end

    def type
      @type ||= payload["issue"]["pull_request"] ? "pull" : "issue"
    end

  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
houston-core-0.8.0.pre app/models/github/issue_comment_event.rb
houston-core-0.7.0 app/models/github/issue_comment_event.rb
houston-core-0.7.0.beta4 app/models/github/issue_comment_event.rb
houston-core-0.7.0.beta3 app/models/github/issue_comment_event.rb
houston-core-0.7.0.beta2 app/models/github/issue_comment_event.rb
houston-core-0.7.0.beta app/models/github/issue_comment_event.rb
houston-core-0.6.3 app/models/github/issue_comment_event.rb
houston-core-0.6.2 app/models/github/issue_comment_event.rb
houston-core-0.6.1 app/models/github/issue_comment_event.rb
houston-core-0.6.0 app/models/github/issue_comment_event.rb
houston-core-0.5.6 app/models/github/issue_comment_event.rb
houston-core-0.5.5 app/models/github/issue_comment_event.rb
houston-core-0.5.4 app/models/github/issue_comment_event.rb
houston-core-0.5.3 app/models/github/issue_comment_event.rb
houston-core-0.5.2 app/models/github/issue_comment_event.rb
houston-core-0.5.1 app/models/github/issue_comment_event.rb
houston-core-0.5.0 app/models/github/issue_comment_event.rb
houston-core-0.5.0.beta1 app/models/github/issue_comment_event.rb