{"action":"created","comment":{"url":"https://api.github.com/repos/rickarubio/typekitter/pulls/comments/32399651","id":32399651,"diff_hunk":"@@ -1,18 +1,29 @@\n class Typekitter::CLI < Thor\n+  attr_reader :client\n+\n   package_name 'typekitter'\n-  @@token = nil\n+\n+  def initialize(*args)\n+    super\n+    @client = Typekitter::ApiClient.new\n+    @token = Typekitter::Token.load\n+  end\n \n   desc 'save_token [value]', 'Saves the token to .typekitter-token'\n   def save_token(value)\n-    @@token = Typekitter::Token.setup(value)\n-    if @@token\n+    @token = Typekitter::Token.setup(value)\n+    if @token\n       puts \"typekit token saved successfully\"\n     end\n   end\n \n   desc 'display_token', 'Displays the current token in use'\n   def display_token\n-    @@token = Typekitter::Token.load\n-    puts \"Your typekit token is: #{@@token.value}\"\n+    puts \"Your typekit token is: #{@token.value}\"","path":"lib/typekitter/cli.rb","position":27,"original_position":27,"commit_id":"e66fe10c3780d98ef7a68fc5c7d8d8d8d4e65516","original_commit_id":"e66fe10c3780d98ef7a68fc5c7d8d8d8d4e65516","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Do not write to stdout. Use Rails' logger if you want to log.","created_at":"2015-06-15T08:27:06Z","updated_at":"2015-06-15T08:27:06Z","html_url":"https://github.com/rickarubio/typekitter/pull/6#discussion_r32399651","pull_request_url":"https://api.github.com/repos/rickarubio/typekitter/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/rickarubio/typekitter/pulls/comments/32399651"},"html":{"href":"https://github.com/rickarubio/typekitter/pull/6#discussion_r32399651"},"pull_request":{"href":"https://api.github.com/repos/rickarubio/typekitter/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/rickarubio/typekitter/pulls/6","id":37668206,"html_url":"https://github.com/rickarubio/typekitter/pull/6","diff_url":"https://github.com/rickarubio/typekitter/pull/6.diff","patch_url":"https://github.com/rickarubio/typekitter/pull/6.patch","issue_url":"https://api.github.com/repos/rickarubio/typekitter/issues/6","number":6,"state":"open","locked":false,"title":"Creates ApiClient to communicate with Typekit api","user":{"login":"rickarubio","id":3452670,"avatar_url":"https://avatars.githubusercontent.com/u/3452670?v=3","gravatar_id":"","url":"https://api.github.com/users/rickarubio","html_url":"https://github.com/rickarubio","followers_url":"https://api.github.com/users/rickarubio/followers","following_url":"https://api.github.com/users/rickarubio/following{/other_user}","gists_url":"https://api.github.com/users/rickarubio/gists{/gist_id}","starred_url":"https://api.github.com/users/rickarubio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickarubio/subscriptions","organizations_url":"https://api.github.com/users/rickarubio/orgs","repos_url":"https://api.github.com/users/rickarubio/repos","events_url":"https://api.github.com/users/rickarubio/events{/privacy}","received_events_url":"https://api.github.com/users/rickarubio/received_events","type":"User","site_admin":false},"body":"* Implements #kits_index for retrieval of a list of typekit kits","created_at":"2015-06-15T08:27:01Z","updated_at":"2015-06-15T08:27:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8936b1fd9447e3ee113895f6e4e47a3ea159f124","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rickarubio/typekitter/pulls/6/commits","review_comments_url":"https://api.github.com/repos/rickarubio/typekitter/pulls/6/comments","review_comment_url":"https://api.github.com/repos/rickarubio/typekitter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rickarubio/typekitter/issues/6/comments","statuses_url":"https://api.github.com/repos/rickarubio/typekitter/statuses/e66fe10c3780d98ef7a68fc5c7d8d8d8d4e65516","head":{"label":"rickarubio:rr-create-typekitter-api","ref":"rr-create-typekitter-api","sha":"e66fe10c3780d98ef7a68fc5c7d8d8d8d4e65516","user":{"login":"rickarubio","id":3452670,"avatar_url":"https://avatars.githubusercontent.com/u/3452670?v=3","gravatar_id":"","url":"https://api.github.com/users/rickarubio","html_url":"https://github.com/rickarubio","followers_url":"https://api.github.com/users/rickarubio/followers","following_url":"https://api.github.com/users/rickarubio/following{/other_user}","gists_url":"https://api.github.com/users/rickarubio/gists{/gist_id}","starred_url":"https://api.github.com/users/rickarubio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickarubio/subscriptions","organizations_url":"https://api.github.com/users/rickarubio/orgs","repos_url":"https://api.github.com/users/rickarubio/repos","events_url":"https://api.github.com/users/rickarubio/events{/privacy}","received_events_url":"https://api.github.com/users/rickarubio/received_events","type":"User","site_admin":false},"repo":{"id":37398886,"name":"typekitter","full_name":"rickarubio/typekitter","owner":{"login":"rickarubio","id":3452670,"avatar_url":"https://avatars.githubusercontent.com/u/3452670?v=3","gravatar_id":"","url":"https://api.github.com/users/rickarubio","html_url":"https://github.com/rickarubio","followers_url":"https://api.github.com/users/rickarubio/followers","following_url":"https://api.github.com/users/rickarubio/following{/other_user}","gists_url":"https://api.github.com/users/rickarubio/gists{/gist_id}","starred_url":"https://api.github.com/users/rickarubio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickarubio/subscriptions","organizations_url":"https://api.github.com/users/rickarubio/orgs","repos_url":"https://api.github.com/users/rickarubio/repos","events_url":"https://api.github.com/users/rickarubio/events{/privacy}","received_events_url":"https://api.github.com/users/rickarubio/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rickarubio/typekitter","description":"Manage your typekit kits with typekitter -- A Ruby CLI for typekit","fork":false,"url":"https://api.github.com/repos/rickarubio/typekitter","forks_url":"https://api.github.com/repos/rickarubio/typekitter/forks","keys_url":"https://api.github.com/repos/rickarubio/typekitter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rickarubio/typekitter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rickarubio/typekitter/teams","hooks_url":"https://api.github.com/repos/rickarubio/typekitter/hooks","issue_events_url":"https://api.github.com/repos/rickarubio/typekitter/issues/events{/number}","events_url":"https://api.github.com/repos/rickarubio/typekitter/events","assignees_url":"https://api.github.com/repos/rickarubio/typekitter/assignees{/user}","branches_url":"https://api.github.com/repos/rickarubio/typekitter/branches{/branch}","tags_url":"https://api.github.com/repos/rickarubio/typekitter/tags","blobs_url":"https://api.github.com/repos/rickarubio/typekitter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rickarubio/typekitter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rickarubio/typekitter/git/refs{/sha}","trees_url":"https://api.github.com/repos/rickarubio/typekitter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rickarubio/typekitter/statuses/{sha}","languages_url":"https://api.github.com/repos/rickarubio/typekitter/languages","stargazers_url":"https://api.github.com/repos/rickarubio/typekitter/stargazers","contributors_url":"https://api.github.com/repos/rickarubio/typekitter/contributors","subscribers_url":"https://api.github.com/repos/rickarubio/typekitter/subscribers","subscription_url":"https://api.github.com/repos/rickarubio/typekitter/subscription","commits_url":"https://api.github.com/repos/rickarubio/typekitter/commits{/sha}","git_commits_url":"https://api.github.com/repos/rickarubio/typekitter/git/commits{/sha}","comments_url":"https://api.github.com/repos/rickarubio/typekitter/comments{/number}","issue_comment_url":"https://api.github.com/repos/rickarubio/typekitter/issues/comments{/number}","contents_url":"https://api.github.com/repos/rickarubio/typekitter/contents/{+path}","compare_url":"https://api.github.com/repos/rickarubio/typekitter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rickarubio/typekitter/merges","archive_url":"https://api.github.com/repos/rickarubio/typekitter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rickarubio/typekitter/downloads","issues_url":"https://api.github.com/repos/rickarubio/typekitter/issues{/number}","pulls_url":"https://api.github.com/repos/rickarubio/typekitter/pulls{/number}","milestones_url":"https://api.github.com/repos/rickarubio/typekitter/milestones{/number}","notifications_url":"https://api.github.com/repos/rickarubio/typekitter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rickarubio/typekitter/labels{/name}","releases_url":"https://api.github.com/repos/rickarubio/typekitter/releases{/id}","created_at":"2015-06-14T04:23:25Z","updated_at":"2015-06-14T04:23:56Z","pushed_at":"2015-06-15T08:27:01Z","git_url":"git://github.com/rickarubio/typekitter.git","ssh_url":"git@github.com:rickarubio/typekitter.git","clone_url":"https://github.com/rickarubio/typekitter.git","svn_url":"https://github.com/rickarubio/typekitter","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"rickarubio:master","ref":"master","sha":"0f6a4876d3d09c09584f98989f0b5ff302b805bf","user":{"login":"rickarubio","id":3452670,"avatar_url":"https://avatars.githubusercontent.com/u/3452670?v=3","gravatar_id":"","url":"https://api.github.com/users/rickarubio","html_url":"https://github.com/rickarubio","followers_url":"https://api.github.com/users/rickarubio/followers","following_url":"https://api.github.com/users/rickarubio/following{/other_user}","gists_url":"https://api.github.com/users/rickarubio/gists{/gist_id}","starred_url":"https://api.github.com/users/rickarubio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickarubio/subscriptions","organizations_url":"https://api.github.com/users/rickarubio/orgs","repos_url":"https://api.github.com/users/rickarubio/repos","events_url":"https://api.github.com/users/rickarubio/events{/privacy}","received_events_url":"https://api.github.com/users/rickarubio/received_events","type":"User","site_admin":false},"repo":{"id":37398886,"name":"typekitter","full_name":"rickarubio/typekitter","owner":{"login":"rickarubio","id":3452670,"avatar_url":"https://avatars.githubusercontent.com/u/3452670?v=3","gravatar_id":"","url":"https://api.github.com/users/rickarubio","html_url":"https://github.com/rickarubio","followers_url":"https://api.github.com/users/rickarubio/followers","following_url":"https://api.github.com/users/rickarubio/following{/other_user}","gists_url":"https://api.github.com/users/rickarubio/gists{/gist_id}","starred_url":"https://api.github.com/users/rickarubio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickarubio/subscriptions","organizations_url":"https://api.github.com/users/rickarubio/orgs","repos_url":"https://api.github.com/users/rickarubio/repos","events_url":"https://api.github.com/users/rickarubio/events{/privacy}","received_events_url":"https://api.github.com/users/rickarubio/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rickarubio/typekitter","description":"Manage your typekit kits with typekitter -- A Ruby CLI for typekit","fork":false,"url":"https://api.github.com/repos/rickarubio/typekitter","forks_url":"https://api.github.com/repos/rickarubio/typekitter/forks","keys_url":"https://api.github.com/repos/rickarubio/typekitter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rickarubio/typekitter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rickarubio/typekitter/teams","hooks_url":"https://api.github.com/repos/rickarubio/typekitter/hooks","issue_events_url":"https://api.github.com/repos/rickarubio/typekitter/issues/events{/number}","events_url":"https://api.github.com/repos/rickarubio/typekitter/events","assignees_url":"https://api.github.com/repos/rickarubio/typekitter/assignees{/user}","branches_url":"https://api.github.com/repos/rickarubio/typekitter/branches{/branch}","tags_url":"https://api.github.com/repos/rickarubio/typekitter/tags","blobs_url":"https://api.github.com/repos/rickarubio/typekitter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rickarubio/typekitter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rickarubio/typekitter/git/refs{/sha}","trees_url":"https://api.github.com/repos/rickarubio/typekitter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rickarubio/typekitter/statuses/{sha}","languages_url":"https://api.github.com/repos/rickarubio/typekitter/languages","stargazers_url":"https://api.github.com/repos/rickarubio/typekitter/stargazers","contributors_url":"https://api.github.com/repos/rickarubio/typekitter/contributors","subscribers_url":"https://api.github.com/repos/rickarubio/typekitter/subscribers","subscription_url":"https://api.github.com/repos/rickarubio/typekitter/subscription","commits_url":"https://api.github.com/repos/rickarubio/typekitter/commits{/sha}","git_commits_url":"https://api.github.com/repos/rickarubio/typekitter/git/commits{/sha}","comments_url":"https://api.github.com/repos/rickarubio/typekitter/comments{/number}","issue_comment_url":"https://api.github.com/repos/rickarubio/typekitter/issues/comments{/number}","contents_url":"https://api.github.com/repos/rickarubio/typekitter/contents/{+path}","compare_url":"https://api.github.com/repos/rickarubio/typekitter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rickarubio/typekitter/merges","archive_url":"https://api.github.com/repos/rickarubio/typekitter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rickarubio/typekitter/downloads","issues_url":"https://api.github.com/repos/rickarubio/typekitter/issues{/number}","pulls_url":"https://api.github.com/repos/rickarubio/typekitter/pulls{/number}","milestones_url":"https://api.github.com/repos/rickarubio/typekitter/milestones{/number}","notifications_url":"https://api.github.com/repos/rickarubio/typekitter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rickarubio/typekitter/labels{/name}","releases_url":"https://api.github.com/repos/rickarubio/typekitter/releases{/id}","created_at":"2015-06-14T04:23:25Z","updated_at":"2015-06-14T04:23:56Z","pushed_at":"2015-06-15T08:27:01Z","git_url":"git://github.com/rickarubio/typekitter.git","ssh_url":"git@github.com:rickarubio/typekitter.git","clone_url":"https://github.com/rickarubio/typekitter.git","svn_url":"https://github.com/rickarubio/typekitter","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rickarubio/typekitter/pulls/6"},"html":{"href":"https://github.com/rickarubio/typekitter/pull/6"},"issue":{"href":"https://api.github.com/repos/rickarubio/typekitter/issues/6"},"comments":{"href":"https://api.github.com/repos/rickarubio/typekitter/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/rickarubio/typekitter/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/rickarubio/typekitter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rickarubio/typekitter/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/rickarubio/typekitter/statuses/e66fe10c3780d98ef7a68fc5c7d8d8d8d4e65516"}}}}