Class: Spotted::Models::Me::AudiobookListResponse::Audiobook::Chapters
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Spotted::Models::Me::AudiobookListResponse::Audiobook::Chapters
- Defined in:
- lib/spotted/models/me/audiobook_list_response.rb
Instance Attribute Summary collapse
-
#href ⇒ String
A link to the Web API endpoint returning the full result of the request.
- #items ⇒ Array<Spotted::Models::SimplifiedChapterObject>?
-
#limit ⇒ Integer
The maximum number of items in the response (as set in the query or by default).
-
#next_ ⇒ String?
URL to the next page of items.
-
#offset ⇒ Integer
The offset of the items returned (as set in the query or by default).
-
#previous ⇒ String?
URL to the previous page of items.
-
#published ⇒ Boolean?
The playlist’s public/private status (if it should be added to the user’s profile or not): ‘true` the playlist will be public, `false` the playlist will be private, `null` the playlist status is not relevant.
-
#total ⇒ Integer
The total number of items available to return.
Instance Method Summary collapse
-
#initialize(href:, limit:, next_:, offset:, previous:, total:, items: nil, published: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Chapters for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(href:, limit:, next_:, offset:, previous:, total:, items: nil, published: nil) ⇒ Object
Some parameter documentations has been truncated, see Spotted::Models::Me::AudiobookListResponse::Audiobook::Chapters for more details.
The chapters of the audiobook.
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
# File 'lib/spotted/models/me/audiobook_list_response.rb', line 60 class Chapters < Spotted::Internal::Type::BaseModel # @!attribute href # A link to the Web API endpoint returning the full result of the request # # @return [String] required :href, String # @!attribute limit # The maximum number of items in the response (as set in the query or by default). # # @return [Integer] required :limit, Integer # @!attribute next_ # URL to the next page of items. ( `null` if none) # # @return [String, nil] required :next_, String, api_name: :next, nil?: true # @!attribute offset # The offset of the items returned (as set in the query or by default) # # @return [Integer] required :offset, Integer # @!attribute previous # URL to the previous page of items. ( `null` if none) # # @return [String, nil] required :previous, String, nil?: true # @!attribute total # The total number of items available to return. # # @return [Integer] required :total, Integer # @!attribute items # # @return [Array<Spotted::Models::SimplifiedChapterObject>, nil] optional :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::SimplifiedChapterObject] } # @!attribute published # The playlist's public/private status (if it should be added to the user's # profile or not): `true` the playlist will be public, `false` the playlist will # be private, `null` the playlist status is not relevant. For more about # public/private status, see # [Working with Playlists](/documentation/web-api/concepts/playlists) # # @return [Boolean, nil] optional :published, Spotted::Internal::Type::Boolean # @!method initialize(href:, limit:, next_:, offset:, previous:, total:, items: nil, published: nil) # Some parameter documentations has been truncated, see # {Spotted::Models::Me::AudiobookListResponse::Audiobook::Chapters} for more # details. # # The chapters of the audiobook. # # @param href [String] A link to the Web API endpoint returning the full result of the request # # @param limit [Integer] The maximum number of items in the response (as set in the query or by default). # # @param next_ [String, nil] URL to the next page of items. ( `null` if none) # # @param offset [Integer] The offset of the items returned (as set in the query or by default) # # @param previous [String, nil] URL to the previous page of items. ( `null` if none) # # @param total [Integer] The total number of items available to return. # # @param items [Array<Spotted::Models::SimplifiedChapterObject>] # # @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil end |
Instance Attribute Details
#href ⇒ String
A link to the Web API endpoint returning the full result of the request
65 |
# File 'lib/spotted/models/me/audiobook_list_response.rb', line 65 required :href, String |
#items ⇒ Array<Spotted::Models::SimplifiedChapterObject>?
100 |
# File 'lib/spotted/models/me/audiobook_list_response.rb', line 100 optional :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::SimplifiedChapterObject] } |
#limit ⇒ Integer
The maximum number of items in the response (as set in the query or by default).
71 |
# File 'lib/spotted/models/me/audiobook_list_response.rb', line 71 required :limit, Integer |
#next_ ⇒ String?
URL to the next page of items. ( ‘null` if none)
77 |
# File 'lib/spotted/models/me/audiobook_list_response.rb', line 77 required :next_, String, api_name: :next, nil?: true |
#offset ⇒ Integer
The offset of the items returned (as set in the query or by default)
83 |
# File 'lib/spotted/models/me/audiobook_list_response.rb', line 83 required :offset, Integer |
#previous ⇒ String?
URL to the previous page of items. ( ‘null` if none)
89 |
# File 'lib/spotted/models/me/audiobook_list_response.rb', line 89 required :previous, String, nil?: true |
#published ⇒ Boolean?
The playlist’s public/private status (if it should be added to the user’s profile or not): ‘true` the playlist will be public, `false` the playlist will be private, `null` the playlist status is not relevant. For more about public/private status, see [Working with Playlists](/documentation/web-api/concepts/playlists)
110 |
# File 'lib/spotted/models/me/audiobook_list_response.rb', line 110 optional :published, Spotted::Internal::Type::Boolean |
#total ⇒ Integer
The total number of items available to return.
95 |
# File 'lib/spotted/models/me/audiobook_list_response.rb', line 95 required :total, Integer |