Sha256: 7b206a1002bd56036faeece64e787a095873c55d71ce587ea3de2047a76de2f6
Contents?: true
Size: 624 Bytes
Versions: 3
Compression:
Stored size: 624 Bytes
Contents
# frozen_string_literal: true require_relative 'parking_ticket/version' require_relative 'client/pay_by_phone' require_relative 'client/pay_by_phone/adapter' module ParkingTicket class Error < StandardError; end def self.renew if current_ticket puts '❌ Can not renew ticket as already covered by a ticket at this time' else puts '🔄 Renewing ticket' adapter.renew puts '✅ Ticket renewed' end end def self.current_ticket puts '🕵️ Retrieving current_ticket' adapter.current_ticket end def self.adapter @@adapter ||= PayByPhone::Adapter.new end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
parking_ticket-0.1.2 | lib/parking_ticket.rb |
parking_ticket-0.1.1 | lib/parking_ticket.rb |
parking_ticket-0.1.0 | lib/parking_ticket.rb |