GitHub PullRequestReviewCommentEvent at 2014-04-24 10:34:35
Repository: cardgate
Actor: michiels
Payload: {"comment":{"url":"https://api.github.com/repos/yourivdlans/cardgate/pulls/comments/11942892","id":11942892,"diff_hunk":"@@ -2,15 +2,9 @@ module Cardgate\n \n   class Transactions\n \n-    attr_reader :id\n-\n-    def initialize(id)\n-      @id = id\n-    end\n-\n-    def find\n+    def self.find(transaction_id)\n       result = Cardgate::Gateway.connection.get do |req|\n-        req.url '/rest/v1/transactions/'\n+        req.url \"/rest/v1/transactions/#{transaction_id}\"","path":"lib/cardgate/transactions.rb","position":14,"original_position":14,"commit_id":"78729c73d54b13bc646f02407196db3d43b0088c","original_commit_id":"78729c73d54b13bc646f02407196db3d43b0088c","user":{"login":"michiels","id":42268,"avatar_url":"https://avatars.githubusercontent.com/u/42268?","gravatar_id":"fb613ae74d247c05eba250f575e2c9b0","url":"https://api.github.com/users/michiels","html_url":"https://github.com/michiels","followers_url":"https://api.github.com/users/michiels/followers","following_url":"https://api.github.com/users/michiels/following{/other_user}","gists_url":"https://api.github.com/users/michiels/gists{/gist_id}","starred_url":"https://api.github.com/users/michiels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michiels/subscriptions","organizations_url":"https://api.github.com/users/michiels/orgs","repos_url":"https://api.github.com/users/michiels/repos","events_url":"https://api.github.com/users/michiels/events{/privacy}","received_events_url":"https://api.github.com/users/michiels/received_events","type":"User","site_admin":false},"body":"This way we can test passing transaction id's in the URL. The previous tests all passed, but failed on the real API because the transaction_id argument wasn't passed in the URL so this test was a bit unrealistic. ","created_at":"2014-04-24T10:34:35Z","updated_at":"2014-04-24T10:34:35Z","html_url":"https://github.com/yourivdlans/cardgate/pull/1#discussion_r11942892","pull_request_url":"https://api.github.com/repos/yourivdlans/cardgate/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/yourivdlans/cardgate/pulls/comments/11942892"},"html":{"href":"https://github.com/yourivdlans/cardgate/pull/1#discussion_r11942892"},"pull_request":{"href":"https://api.github.com/repos/yourivdlans/cardgate/pulls/1"}}}}