Added task for wiki autogeneration.
This commit is contained in:
1 parent
92ad3a293a
commit
abf64d5314
3 files changed
+66
-3
No files matched your search
@@ -82,14 +82,29 @@ module Google
|
||||
end
|
||||
|
||||
##
|
||||
# Returns the parsed section of the discovery document that applies to
|
||||
# this version of the service.
|
||||
# Returns a human-readable title for the API.
|
||||
#
|
||||
# @return [Hash] The service description.
|
||||
# @return [Hash] The API title.
|
||||
def title
|
||||
return @discovery_document['title']
|
||||
end
|
||||
|
||||
##
|
||||
# Returns a human-readable description of the API.
|
||||
#
|
||||
# @return [Hash] The API description.
|
||||
def description
|
||||
return @discovery_document['description']
|
||||
end
|
||||
|
||||
##
|
||||
# Returns a URI for the API documentation.
|
||||
#
|
||||
# @return [Hash] The API documentation.
|
||||
def documentation
|
||||
return Addressable::URI.parse(@discovery_document['documentationLink'])
|
||||
end
|
||||
|
||||
##
|
||||
# Returns true if this is the preferred version of this API.
|
||||
#
|
||||
@@ -181,6 +196,12 @@ module Google
|
||||
)
|
||||
end
|
||||
|
||||
##
|
||||
# Allows deep inspection of the discovery document.
|
||||
def [](key)
|
||||
return @discovery_document[key]
|
||||
end
|
||||
|
||||
##
|
||||
# Converts the service to a flat mapping of RPC names and method objects.
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user