Sha256: 166cb3fe4be381a4d8b595771f32d23c6d54b660d21900c667be377615d7f207
Contents?: true
Size: 514 Bytes
Versions: 3
Compression:
Stored size: 514 Bytes
Contents
class ParkingTicket::Ticket def initialize(attributes) @starts_on = attributes[:starts_on] @ends_on = attributes[:ends_on] @license_plate = attributes[:license_plate] @cost = attributes[:cost] @client = attributes[:client] @client_ticket_id = attributes[:client_ticket_id] end def to_h { starts_on: @starts_on, ends_on: @ends_on, license_plate: @license_plate, cost: @cost, client: @client, client_ticket_id: @client_ticket_id } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
parking_ticket-0.1.2 | lib/parking_ticket/ticket.rb |
parking_ticket-0.1.1 | lib/parking_ticket/ticket.rb |
parking_ticket-0.1.0 | lib/parking_ticket/ticket.rb |