{"action":"closed","issue":{"url":"https://api.github.com/repos/pedro-andrade-inpe/terrame/issues/273","labels_url":"https://api.github.com/repos/pedro-andrade-inpe/terrame/issues/273/labels{/name}","comments_url":"https://api.github.com/repos/pedro-andrade-inpe/terrame/issues/273/comments","events_url":"https://api.github.com/repos/pedro-andrade-inpe/terrame/issues/273/events","html_url":"https://github.com/pedro-andrade-inpe/terrame/issues/273","id":53880526,"number":273,"title":"choice() for Model","user":{"login":"pedro-andrade-inpe","id":8777631,"avatar_url":"https://avatars.githubusercontent.com/u/8777631?v=3","gravatar_id":"","url":"https://api.github.com/users/pedro-andrade-inpe","html_url":"https://github.com/pedro-andrade-inpe","followers_url":"https://api.github.com/users/pedro-andrade-inpe/followers","following_url":"https://api.github.com/users/pedro-andrade-inpe/following{/other_user}","gists_url":"https://api.github.com/users/pedro-andrade-inpe/gists{/gist_id}","starred_url":"https://api.github.com/users/pedro-andrade-inpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedro-andrade-inpe/subscriptions","organizations_url":"https://api.github.com/users/pedro-andrade-inpe/orgs","repos_url":"https://api.github.com/users/pedro-andrade-inpe/repos","events_url":"https://api.github.com/users/pedro-andrade-inpe/events{/privacy}","received_events_url":"https://api.github.com/users/pedro-andrade-inpe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pedro-andrade-inpe/terrame/labels/Core","name":"Core","color":"fef2c0"},{"url":"https://api.github.com/repos/pedro-andrade-inpe/terrame/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"pedro-andrade-inpe","id":8777631,"avatar_url":"https://avatars.githubusercontent.com/u/8777631?v=3","gravatar_id":"","url":"https://api.github.com/users/pedro-andrade-inpe","html_url":"https://github.com/pedro-andrade-inpe","followers_url":"https://api.github.com/users/pedro-andrade-inpe/followers","following_url":"https://api.github.com/users/pedro-andrade-inpe/following{/other_user}","gists_url":"https://api.github.com/users/pedro-andrade-inpe/gists{/gist_id}","starred_url":"https://api.github.com/users/pedro-andrade-inpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedro-andrade-inpe/subscriptions","organizations_url":"https://api.github.com/users/pedro-andrade-inpe/orgs","repos_url":"https://api.github.com/users/pedro-andrade-inpe/repos","events_url":"https://api.github.com/users/pedro-andrade-inpe/events{/privacy}","received_events_url":"https://api.github.com/users/pedro-andrade-inpe/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/pedro-andrade-inpe/terrame/milestones/1","labels_url":"https://api.github.com/repos/pedro-andrade-inpe/terrame/milestones/1/labels","id":793392,"number":1,"title":"2.0","description":"- Tests rebuilt\r\n- Tests now belong to TerraME functionalities\r\n- LuaDoc now belongs to TerraME functionalities\r\n- New type Model\r\n- Packages support (build, install, test, doc, load)\r\n- Observers rebuilt (Chart, Map, Clock, InternetSender)","creator":{"login":"pedro-andrade-inpe","id":8777631,"avatar_url":"https://avatars.githubusercontent.com/u/8777631?v=3","gravatar_id":"","url":"https://api.github.com/users/pedro-andrade-inpe","html_url":"https://github.com/pedro-andrade-inpe","followers_url":"https://api.github.com/users/pedro-andrade-inpe/followers","following_url":"https://api.github.com/users/pedro-andrade-inpe/following{/other_user}","gists_url":"https://api.github.com/users/pedro-andrade-inpe/gists{/gist_id}","starred_url":"https://api.github.com/users/pedro-andrade-inpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedro-andrade-inpe/subscriptions","organizations_url":"https://api.github.com/users/pedro-andrade-inpe/orgs","repos_url":"https://api.github.com/users/pedro-andrade-inpe/repos","events_url":"https://api.github.com/users/pedro-andrade-inpe/events{/privacy}","received_events_url":"https://api.github.com/users/pedro-andrade-inpe/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":150,"state":"open","created_at":"2014-09-17T17:16:55Z","updated_at":"2015-01-13T19:05:04Z","due_on":"2015-02-28T03:00:00Z","closed_at":null},"comments":0,"created_at":"2015-01-09T15:43:01Z","updated_at":"2015-01-13T19:05:04Z","closed_at":"2015-01-13T19:05:04Z","body":"Implement choice() to be used by models. The default value is the minimum value.\r\n\r\n```lua\r\ndel = Model{\r\n    par1 = Choice{1, 2, 3, 4, 5},\r\n    par2 = Choice{\"low\", \"medium\", \"high\"},\r\n    par3 = Choice{min = 1, max = 20, step = 1},\r\n\r\n}\r\n```"}}