Class: Ghn::ReleaseNotification

Inherits:
Notification show all
Defined in:
lib/ghn/notification.rb

Instance Attribute Summary

Attributes inherited from Notification

#follow_issuecomment, #notification

Instance Method Summary collapse

Methods inherited from Notification

#initialize, #type_class

Constructor Details

This class inherits a constructor from Ghn::Notification

Instance Method Details

#urlObject



69
70
71
72
73
# File 'lib/ghn/notification.rb', line 69

def url
  url = notification[:subject][:url]
  result = JSON.parse(Net::HTTP.get(URI.parse(url)))
  result['html_url']
end