{"action":"opened","issue":{"url":"https://api.github.com/repos/deploy2/ruby-ip/issues/23","repository_url":"https://api.github.com/repos/deploy2/ruby-ip","labels_url":"https://api.github.com/repos/deploy2/ruby-ip/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/deploy2/ruby-ip/issues/23/comments","events_url":"https://api.github.com/repos/deploy2/ruby-ip/issues/23/events","html_url":"https://github.com/deploy2/ruby-ip/issues/23","id":187586556,"number":23,"title":"problems subclassing ip","user":{"login":"Canx","id":304053,"avatar_url":"https://avatars.githubusercontent.com/u/304053?v=3","gravatar_id":"","url":"https://api.github.com/users/Canx","html_url":"https://github.com/Canx","followers_url":"https://api.github.com/users/Canx/followers","following_url":"https://api.github.com/users/Canx/following{/other_user}","gists_url":"https://api.github.com/users/Canx/gists{/gist_id}","starred_url":"https://api.github.com/users/Canx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Canx/subscriptions","organizations_url":"https://api.github.com/users/Canx/orgs","repos_url":"https://api.github.com/users/Canx/repos","events_url":"https://api.github.com/users/Canx/events{/privacy}","received_events_url":"https://api.github.com/users/Canx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-06T20:28:35Z","updated_at":"2016-11-06T20:28:35Z","closed_at":null,"body":"Hi,\r\n\r\nthanks for sharing this great library! \r\n\r\nI'm trying to inherit from IP but I've got problems with the constructor:\r\n\r\n```\r\n$ ruby ip_extended.rb \r\n/var/lib/gems/2.3.0/gems/ruby-ip-0.9.3/lib/ip/base.rb:22:in `new': wrong number of arguments (given 3, expected 1) (ArgumentError)\r\n        from ip_extended.rb:9:in `<main>'\r\n```\r\nThe code:\r\n```\r\nrequire 'ip'\r\n\r\nclass IPExtended < IP\r\n  def initialize(ip, param2, param3)\r\n    super(ip)\r\n  end\r\nend\r\n\r\nip = IPExtended.new(\"192.168.1.1\", true, true)\r\nputs ip.to_s\r\n```\r\n\r\nI don't know what I'm doing wrong, could you help me please?\r\n\r\n"}}
{"actor":{"display_login":"Canx"}}