Skip to content

Instantly share code, notes, and snippets.

@gmoore
Created April 22, 2011 15:08
Show Gist options
  • Save gmoore/936842 to your computer and use it in GitHub Desktop.
Save gmoore/936842 to your computer and use it in GitHub Desktop.
ruby-1.9.2-p180 :031 > ticket
=> #<AthenaTicket:0x00000102c4b8c0 @attributes={"price"=>"5000", "event_id"=>"229376", "performance"=>2011-08-19 15:13:00 -0400, "event"=>"A Little Testing", "state"=>"sold", "performance_id"=>"229383", "venue"=>"Broadhurst Theatre", "section"=>"Balcony", "id"=>"458771", "buyer_id"=>"32779"}, @prefix_options={}, @buyer=#<AthenaPerson:0x00000102d778e8 @attributes={"last_name"=>"Erdman", "email"=>"mallie.blanda@pouros.com", "organization_id"=>"7", "first_name"=>"Taylor", "id"=>"32779"}, @prefix_options={}>, @default_current_state=:sold, @errors={}, @remote_errors=nil, @validation_context=nil>
ruby-1.9.2-p180 :032 > ticket.id
=> "458771"
ruby-1.9.2-p180 :033 > ticket.expired?
=> false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment