Expose discovery doc in prep for future doc changes

This commit is contained in:
Steven Bazyl committed 2012-10-10 14:28:46 -06:00
1 parent c2d64a2484
commit 3dcd88a884
3 files changed
+25 -14

No files matched your search

+11 -7
View File
@@ -58,25 +58,29 @@ module Google
end
end
# @return [String] unparsed discovery document for the resource
attr_reader :discovery_document
##
# Returns the identifier for the resource.
#
# @return [String] The resource identifier.
attr_reader :name
##
# Returns the parsed section of the discovery document that applies to
# this resource.
#
# @return [Hash] The resource description.
attr_reader :description
##
# Returns the base URI for this resource.
#
# @return [Addressable::URI] The base URI that methods are joined to.
attr_reader :method_base
##
# Returns a human-readable description of the resource.
#
# @return [Hash] The API description.
def description
return @discovery_document['description']
end
##
# Updates the hierarchy of resources and methods with the new base.
#