Class: Onebox::Engine::GithubIssueOnebox

Inherits:
Object
  • Object
show all
Includes:
Onebox::Engine, JSON, LayoutSupport, Mixins::GithubBody
Defined in:
lib/onebox/engine/github_issue_onebox.rb

Instance Attribute Summary

Attributes included from Onebox::Engine

#errors, #options, #timeout, #uri

Instance Method Summary collapse

Methods included from Mixins::GithubBody

included

Methods included from LayoutSupport

#layout, max_text, #to_html

Methods included from Onebox::Engine

all_iframe_origins, engines, included, #initialize, origins_to_regexes, #placeholder_html, #to_html

Instance Method Details

#urlObject



19
20
21
22
# File 'lib/onebox/engine/github_issue_onebox.rb', line 19

def url
  m = match
  "https://api.github.com/repos/#{m["org"]}/#{m["repo"]}/issues/#{m["item_id"]}"
end