class RGovData::ServiceListing
A ServiceListing
is the metadata describing a specific service It encapsulates access to the underlying service
Attributes
credentialset[RW]
description[RW]
info_uri[RW]
key[RW]
keywords[RW]
license[RW]
name[RW]
publisher[RW]
realm[RW]
service_key[RW]
type[RW]
uri[RW]
Public Instance Methods
datasets()
click to toggle source
Returns an array of DataSets for the service
> delegate to service¶ ↑
# File lib/rgovdata/service/listing.rb, line 28 def datasets service.try(:datasets) end
Also aliased as: records
find(id)
click to toggle source
Returns the first dataset matching key
> delegate to service¶ ↑
# File lib/rgovdata/service/listing.rb, line 40 def find(id) service.try(:find,id) end
Also aliased as: find_by_id
get_dataset(key)
click to toggle source
service()
click to toggle source
Returns the service for this listing
# File lib/rgovdata/service/listing.rb, line 19 def service @service ||= RGovData::Service.get_instance(self) end