Skip to content

Instantly share code, notes, and snippets.

@voxxit
Created September 25, 2009 03:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voxxit/193288 to your computer and use it in GitHub Desktop.
Save voxxit/193288 to your computer and use it in GitHub Desktop.
core_client_id = Client.find_by_old_client_id(clientid)
core_state = case active
when 0 then "cancelled"
when 1 then "active"
when 3 then "suspended"
when 4 then "cancelled"
else
"queued"
end
core_last_renewed_at = Time.at(lastrenew)
core_expires_at = Time.at(renewdate)
if end == 0
core_automatically_renew = true
else
core_automatically_renew = false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment