Sha256: 2ad08ac6a992f1349163ee9e304ae04f6fff6b1459438d8944e1b55bebdfc430
Contents?: true
Size: 1.01 KB
Versions: 24
Compression:
Stored size: 1.01 KB
Contents
# ******************************************* # This is a demo file to show usage. # # @package TheCity::Admin # @authors Robbie Lieb <robbie@onthecity.org>, Wes Hays <wes@onthecity.org> # ******************************************* require 'ruby-debug' require File.dirname(__FILE__) + '/../lib/the_city_admin.rb' require File.dirname(__FILE__) + '/city_keys.rb' include CityKeys TheCity::AdminApi.connect(KEY, TOKEN) puts "------------------------------------" barcode = TheCity::Barcode.load_by_id(12345) if barcode.nil? puts 'Barcode not found' else puts "Barcode: #{barcode.barcode}" end puts "------------------------------------" checkin_list = TheCity::CheckinList.new # if checkin_list.empty? # puts "No checkins in list" # else # puts "Checkins: #{checkin_list.count}" # end # checkin = checkin_list[0] # checkin2 = TheCity::Checkin.load_by_id(checkin.id) # if checkin2.nil? # puts 'Checkin not found' # else # puts "Checkin: #{checkin2.barcode}" # end puts "####################################"
Version data entries
24 entries across 24 versions & 1 rubygems