iii.rb

An insanely easy Ruby interface to the Innovative Interfaces API Aaron Bedra aaron@aaronbedra.com>

Get it

via RubyGems: gem install iii
...or download the gem: iii-0.1.gem
...or just get the source by itself: iii.rb

Example

require 'iii'

# basics
patron = Patron.new(catalog, barcode)     # Create a III Patron specific connection
record_info = patron.rec_info             # Retrieves the Patron's record info
expiration_date = patron.exp_date         # Retrieves the Patron's account expiration date
age_range = patron.age_range              # Retrieves the Patron's age range type
county = patron.county                    # Retrieves the Patron's county
school_district = patron.sch_dist         # Retrieves the Patron's school district if applicable
patron_type = patron.ptype                # Retrieves the Patron's patron type
total_checkouts = patron.tot_chkout       # Retrieves the total number of items checked out
total_renewals = patron.tot_renewal       # Retrieves the Patron's total renewals
current_checkouts = patron.cur_chkout     # Retrieves the number of current items checked out
home_library = patron.home_libr           # Retrieves the Patron's home library
patron_message = patron.pmessage          # Retrieves the any messages on the patron's account
block = patron.mblock                     # Retrieves any block information
record_type = patron.rec_type             # Retrieves the Patron's record type
record = patron.record                    # Retrieves the Patron's record information
record_length = patron.rec_leng           # Retrieves the Patron's record length
created = patron.created                  # Retrieves the Patron's account creation date
updated = patron.updated                  # Retrieves the Patron's account updated date
revisions = patron.revisions              # Retrieves the number of revisions on an account
agency = patron.agency                    # Retrieves agency data
calls = patron.cl_rtrnd                   # Retrieves call data
fines = patron.money_owed                 # Retrieves the Patron's fine data
block_until = patron.blk_until            # Retrieves extra block information
itema = patron.cur_itema                  # Retrieves specific item information
itemb = patron.cur_itemb                  # Retrieves specific item information
itemc = patron.cur_itemc                  # Retrieves specific item information
itemd = patron.cur_itemd                  # Retrieves specific item information
illiad_requests = patron.ill_reques       # Retrieves illiad request information
circactive = patron.circactive            # ???
locale = patron.lang_pref                 # Retrieves the Patron's language preference
notice_type = patron.notice_pref          # Retrieves the Patron's preferred notice type
current_reg = patron.cur_regist           # Retrieves the Patron's current event registrations
total_attendance = patron.tot_attend      # Retrieves the Patron's total event attendance
patron_name = patron.patrn_name           # Retrieves the Patron's name
address = patron.address                  # Retrieves the Patron's address
phone = patron.telephone                  # Retrieves the Patron's phone
barcode = patron.p_barcode                # Retrieves the Patron's barcode
email = patron.email_addr                 # Retrieves the Patron's email address

License

MIT License. Attribution and contribution encouraged.