Skip to content

Commit

Permalink
integrated ticket into DmExpstorage
Browse files Browse the repository at this point in the history
  • Loading branch information
jmettraux committed Aug 30, 2009
1 parent 80ed596 commit dff1556
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/ruote/dm/storage/dm_storage.rb
Expand Up @@ -173,6 +173,20 @@ def to_s
end
end

#--
# ticket methods
#++

def draw_ticket (fexp)

Ruote::Dm::Ticket.draw(self.object_id.to_s, fexp.fei.to_s)
end

def discard_all_tickets (fei)

Ruote::Dm::Ticket.discard_all(fei.to_s)
end

protected

def find (fei)
Expand Down

0 comments on commit dff1556

Please sign in to comment.