Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
add Singapore Libraries example
Browse files Browse the repository at this point in the history
  • Loading branch information
tardate committed Nov 5, 2011
1 parent f46ee45 commit 5d23478
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2011 Paul Gallagher
Copyright (c) 2011 Paul Gallagher, Evendis Pte Ltd http://evendis.com

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ enforcement or protection.


== Contributing to RGovData

* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
* Fork the project
Expand Down
2 changes: 2 additions & 0 deletions examples/catalog_traversal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
require 'rgovdata'

# This demonstrates the essential process of traversing the RGovData catalog
# Note: this example probably requires valid projectnimbus credentials in your rgovdata.conf file
# since it will blindly traverse the tree and may hit a projectnimbus service

# This gets the root catalog
root_catalog = RGovData::Catalog.new(nil)
Expand Down
7 changes: 7 additions & 0 deletions examples/singapore_libraries.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env ruby
require 'rgovdata'

# This demonstrates how to use RGovData with OData web services
# Note: this example requires valid projectnimbus credentials in your rgovdata.conf file

RGovData::Catalog.get('//sg/nlb/LibrarySet').records.each { |library| puts library.Name }

0 comments on commit 5d23478

Please sign in to comment.