{"action":"created","issue":{"url":"https://api.github.com/repos/state-machines/state_machines/issues/22","labels_url":"https://api.github.com/repos/state-machines/state_machines/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/state-machines/state_machines/issues/22/comments","events_url":"https://api.github.com/repos/state-machines/state_machines/issues/22/events","html_url":"https://github.com/state-machines/state_machines/issues/22","id":89632912,"number":22,"title":"get value for state name?","user":{"login":"arches","id":608232,"avatar_url":"https://avatars.githubusercontent.com/u/608232?v=3","gravatar_id":"","url":"https://api.github.com/users/arches","html_url":"https://github.com/arches","followers_url":"https://api.github.com/users/arches/followers","following_url":"https://api.github.com/users/arches/following{/other_user}","gists_url":"https://api.github.com/users/arches/gists{/gist_id}","starred_url":"https://api.github.com/users/arches/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arches/subscriptions","organizations_url":"https://api.github.com/users/arches/orgs","repos_url":"https://api.github.com/users/arches/repos","events_url":"https://api.github.com/users/arches/events{/privacy}","received_events_url":"https://api.github.com/users/arches/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-19T18:44:03Z","updated_at":"2015-07-09T18:13:13Z","closed_at":"2015-07-09T16:59:58Z","body":"My setup:\r\n\r\n```ruby\r\nclass Vehicle\r\n  state_machine :state do\r\n    state :parked, value: 0\r\n  end\r\nend\r\n```\r\nMy goal is to turn :parked back into 0, for example:\r\n```ruby\r\nVehicle.state_value(:parked) # => 0\r\n```\r\nCan't find a method for it in the docs or some minor code inspection.... any ideas? Thanks!"},"comment":{"url":"https://api.github.com/repos/state-machines/state_machines/issues/comments/120091492","html_url":"https://github.com/state-machines/state_machines/issues/22#issuecomment-120091492","issue_url":"https://api.github.com/repos/state-machines/state_machines/issues/22","id":120091492,"user":{"login":"arches","id":608232,"avatar_url":"https://avatars.githubusercontent.com/u/608232?v=3","gravatar_id":"","url":"https://api.github.com/users/arches","html_url":"https://github.com/arches","followers_url":"https://api.github.com/users/arches/followers","following_url":"https://api.github.com/users/arches/following{/other_user}","gists_url":"https://api.github.com/users/arches/gists{/gist_id}","starred_url":"https://api.github.com/users/arches/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arches/subscriptions","organizations_url":"https://api.github.com/users/arches/orgs","repos_url":"https://api.github.com/users/arches/repos","events_url":"https://api.github.com/users/arches/events{/privacy}","received_events_url":"https://api.github.com/users/arches/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T18:13:13Z","updated_at":"2015-07-09T18:13:13Z","body":"....but how?"}}