{"action":"created","issue":{"url":"https://api.github.com/repos/kraih/mango/issues/26","labels_url":"https://api.github.com/repos/kraih/mango/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/kraih/mango/issues/26/comments","events_url":"https://api.github.com/repos/kraih/mango/issues/26/events","html_url":"https://github.com/kraih/mango/issues/26","id":55418165,"number":26,"title":"$self->mango undefined inside Mango::Database","user":{"login":"jkramer","id":6999,"avatar_url":"https://avatars.githubusercontent.com/u/6999?v=3","gravatar_id":"","url":"https://api.github.com/users/jkramer","html_url":"https://github.com/jkramer","followers_url":"https://api.github.com/users/jkramer/followers","following_url":"https://api.github.com/users/jkramer/following{/other_user}","gists_url":"https://api.github.com/users/jkramer/gists{/gist_id}","starred_url":"https://api.github.com/users/jkramer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkramer/subscriptions","organizations_url":"https://api.github.com/users/jkramer/orgs","repos_url":"https://api.github.com/users/jkramer/repos","events_url":"https://api.github.com/users/jkramer/events{/privacy}","received_events_url":"https://api.github.com/users/jkramer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-25T14:55:29Z","updated_at":"2015-01-25T15:07:25Z","closed_at":"2015-01-25T15:07:25Z","body":"This code:\r\n\r\n    my $m = Mango->new->db('abc')->collection('xyz');\r\n    $m->insert(...)\r\n\r\nGives me this error:\r\n\r\n    Can't call method \"j\" on an undefined value at .../perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1/Mango/Database.pm line 14.\r\n\r\nHowever this:\r\n\r\n    my $mango = Mango->new;\r\n    my $m = $mango->db('abc')->collection('xyz');\r\n    $m->insert(...)\r\n\r\nworks just fine."},"comment":{"url":"https://api.github.com/repos/kraih/mango/issues/comments/71376503","html_url":"https://github.com/kraih/mango/issues/26#issuecomment-71376503","issue_url":"https://api.github.com/repos/kraih/mango/issues/26","id":71376503,"user":{"login":"jkramer","id":6999,"avatar_url":"https://avatars.githubusercontent.com/u/6999?v=3","gravatar_id":"","url":"https://api.github.com/users/jkramer","html_url":"https://github.com/jkramer","followers_url":"https://api.github.com/users/jkramer/followers","following_url":"https://api.github.com/users/jkramer/following{/other_user}","gists_url":"https://api.github.com/users/jkramer/gists{/gist_id}","starred_url":"https://api.github.com/users/jkramer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkramer/subscriptions","organizations_url":"https://api.github.com/users/jkramer/orgs","repos_url":"https://api.github.com/users/jkramer/repos","events_url":"https://api.github.com/users/jkramer/events{/privacy}","received_events_url":"https://api.github.com/users/jkramer/received_events","type":"User","site_admin":false},"created_at":"2015-01-25T15:07:25Z","updated_at":"2015-01-25T15:07:25Z","body":"Wrong repository."}}