Class: Google::Apis::BooksV1::Offers::Item
- Inherits:
-
Object
- Object
- Google::Apis::BooksV1::Offers::Item
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/books_v1/classes.rb,
generated/google/apis/books_v1/representations.rb,
generated/google/apis/books_v1/representations.rb
Defined Under Namespace
Classes: Item
Instance Attribute Summary collapse
-
#art_url ⇒ String
Corresponds to the JSON property
artUrl
. -
#gservices_key ⇒ String
Corresponds to the JSON property
gservicesKey
. -
#id ⇒ String
Corresponds to the JSON property
id
. -
#items ⇒ Array<Google::Apis::BooksV1::Offers::Item::Item>
Corresponds to the JSON property
items
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Item
constructor
A new instance of Item.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Item
Returns a new instance of Item.
2130 2131 2132 |
# File 'generated/google/apis/books_v1/classes.rb', line 2130 def initialize(**args) update!(**args) end |
Instance Attribute Details
#art_url ⇒ String
Corresponds to the JSON property artUrl
2113 2114 2115 |
# File 'generated/google/apis/books_v1/classes.rb', line 2113 def art_url @art_url end |
#gservices_key ⇒ String
Corresponds to the JSON property gservicesKey
2118 2119 2120 |
# File 'generated/google/apis/books_v1/classes.rb', line 2118 def gservices_key @gservices_key end |
#id ⇒ String
Corresponds to the JSON property id
2123 2124 2125 |
# File 'generated/google/apis/books_v1/classes.rb', line 2123 def id @id end |
#items ⇒ Array<Google::Apis::BooksV1::Offers::Item::Item>
Corresponds to the JSON property items
2128 2129 2130 |
# File 'generated/google/apis/books_v1/classes.rb', line 2128 def items @items end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2135 2136 2137 2138 2139 2140 |
# File 'generated/google/apis/books_v1/classes.rb', line 2135 def update!(**args) @art_url = args[:art_url] if args.key?(:art_url) @gservices_key = args[:gservices_key] if args.key?(:gservices_key) @id = args[:id] if args.key?(:id) @items = args[:items] if args.key?(:items) end |