class Ellington::Ticket

Attributes

goal[R]
passenger[R]

Public Class Methods

new(goal=nil, hash={}) click to toggle source
Calls superclass method
# File lib/ellington/ticket.rb, line 9
def initialize(goal=nil, hash={})
  goal ||= Ellington::Target.new
  @goal = goal
  super hash
end

Public Instance Methods

id() click to toggle source
# File lib/ellington/ticket.rb, line 15
def id
  Digest::SHA256.hexdigest values.map(&:to_s).join
end