class Octokit::Gist
Class to parse and create Gist
URLs
Attributes
!@attribute id
@return [String] Gist ID
Public Class Methods
Source
# File lib/octokit/gist.rb, line 12 def self.from_url(url) Gist.new(URI.parse(url).path[1..]) end
Instantiate {Gist} object from Gist
URL @ return [Gist]
Source
# File lib/octokit/gist.rb, line 16 def initialize(gist) case gist when Integer, String @id = gist.to_s end end