Class: Google::Apis::BooksV1::Offers::Item

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/books_v1/classes.rb,
lib/google/apis/books_v1/representations.rb,
lib/google/apis/books_v1/representations.rb

Defined Under Namespace

Classes: Item

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Item

Returns a new instance of Item.



2281
2282
2283
# File 'lib/google/apis/books_v1/classes.rb', line 2281

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#art_urlString

Corresponds to the JSON property artUrl

Returns:

  • (String)


2264
2265
2266
# File 'lib/google/apis/books_v1/classes.rb', line 2264

def art_url
  @art_url
end

#gservices_keyString

Corresponds to the JSON property gservicesKey

Returns:

  • (String)


2269
2270
2271
# File 'lib/google/apis/books_v1/classes.rb', line 2269

def gservices_key
  @gservices_key
end

#idString

Corresponds to the JSON property id

Returns:

  • (String)


2274
2275
2276
# File 'lib/google/apis/books_v1/classes.rb', line 2274

def id
  @id
end

#itemsArray<Google::Apis::BooksV1::Offers::Item::Item>

Corresponds to the JSON property items



2279
2280
2281
# File 'lib/google/apis/books_v1/classes.rb', line 2279

def items
  @items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2286
2287
2288
2289
2290
2291
# File 'lib/google/apis/books_v1/classes.rb', line 2286

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