{"action":"closed","issue":{"url":"https://api.github.com/repos/conekta/conekta-ruby/issues/11","labels_url":"https://api.github.com/repos/conekta/conekta-ruby/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/conekta/conekta-ruby/issues/11/comments","events_url":"https://api.github.com/repos/conekta/conekta-ruby/issues/11/events","html_url":"https://github.com/conekta/conekta-ruby/issues/11","id":57074477,"number":11,"title":"conekta_object.inspect is missing data","user":{"login":"grillermo","id":761476,"avatar_url":"https://avatars.githubusercontent.com/u/761476?v=3","gravatar_id":"","url":"https://api.github.com/users/grillermo","html_url":"https://github.com/grillermo","followers_url":"https://api.github.com/users/grillermo/followers","following_url":"https://api.github.com/users/grillermo/following{/other_user}","gists_url":"https://api.github.com/users/grillermo/gists{/gist_id}","starred_url":"https://api.github.com/users/grillermo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grillermo/subscriptions","organizations_url":"https://api.github.com/users/grillermo/orgs","repos_url":"https://api.github.com/users/grillermo/repos","events_url":"https://api.github.com/users/grillermo/events{/privacy}","received_events_url":"https://api.github.com/users/grillermo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-09T19:05:08Z","updated_at":"2015-02-23T18:55:15Z","closed_at":"2015-02-23T18:55:15Z","body":"It seems that @values.inspect is not exhaustive. \r\nIf you do \r\ncustomer.inspect \r\n\r\n    \"{\\\"id\\\"=>\\\"cus_zNtuDyNVWAu6FqoKu\\\", \\\"email\\\"=>\\\"my.mail@gmail.com\\\", \\\"name\\\"=>\\\"Juan\\\", \\\"phone\\\"=>\\\"12345\\\", \\\"livemode\\\"=>false, \\\"default_card_id\\\"=>\\\"card_G3sdsddsds\\\", \\\"object\\\"=>\\\"customer\\\", \\\"created_at\\\"=>1423507954, \\\"cards\\\"=>[{\\\"id\\\"=>\\\"card_G3sdsddsds\\\", \\\"created_at\\\"=>1423507954, \\\"active\\\"=>true, \\\"last4\\\"=>\\\"4242\\\", \\\"object\\\"=>\\\"card\\\", \\\"exp_month\\\"=>\\\"12\\\", \\\"exp_year\\\"=>\\\"19\\\", \\\"brand\\\"=>\\\"VISA\\\", \\\"name\\\"=>\\\"Jorge Lopez\\\", \\\"customer_id\\\"=>\\\"cus_zNtuDyNVWAu6FqoKu\\\"}], \\\"subscription\\\"=>nil}\"\r\n\r\nAs shown by the docs. Please notice the last part, it has the card information.\r\nBut if you do\r\ncustomer.values\r\n\r\n    {\"id\"=>\"cus_zNtuDyNVWAu6FqoKu\",\r\n    \"email\"=>\"guillermo.siliceo@gmail.com\",\r\n    \"name\"=>\"Juan\",\r\n    \"phone\"=>\"12345\",\r\n    \"livemode\"=>false,\r\n    \"default_card_id\"=>\"card_G3jFzdh2rSupP2Do\",\r\n    \"object\"=>\"customer\",\r\n    \"created_at\"=>1423507954,\r\n    \"cards\"=>{0=>{}},\r\n    \"subscription\"=>nil}\r\n\r\nThe cards information is missing, and looking at the implementation\r\n\r\n    https://github.com/conekta/conekta-ruby/blob/afce2f479ed1ccec74fe3e6e8c0a2a3a046c8e88/lib/conekta/conekta_object.rb#L34\r\n\r\nIt seems that \r\n\r\n     @values.inspect \r\n\r\nIs the culprit. \r\n\r\nThis 'bug' forces me to do\r\n\r\neval customer.inspect\r\n\r\nTo access the card info, which is nasty."}}