-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add yard docs for Comic, ComicList, and related classes
- Loading branch information
Showing
2 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
# frozen_string_literal: true | ||
|
||
module Harkness | ||
# The summary of a comic. | ||
class ComicSummary < Harkness::Base::Summary | ||
end | ||
|
||
# A list of comics. | ||
class ComicList < Shale::Mapper | ||
# @!attribute [r] available | ||
# @return [Integer] the number of total available issues in this list. Will always be greater than | ||
# or equal to the "returned" value. | ||
attribute :available, Shale::Type::Integer | ||
# @!attribute [r] collectionURI | ||
# @return [String] the path to the full list of issues in this collection. | ||
attribute :collectionURI, Shale::Type::String | ||
# @!attribute [r] collectionURI | ||
# @return [Array<Harkness::ComicSummary>] the list of returned issues in this collection. | ||
attribute :items, Harkness::ComicSummary, collection: true | ||
end | ||
end |