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

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) ⇒ Offers

Returns a new instance of Offers.



2247
2248
2249
# File 'lib/google/apis/books_v1/classes.rb', line 2247

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

Instance Attribute Details

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

A list of offers. Corresponds to the JSON property items



2240
2241
2242
# File 'lib/google/apis/books_v1/classes.rb', line 2240

def items
  @items
end

#kindString

Resource type. Corresponds to the JSON property kind

Returns:

  • (String)


2245
2246
2247
# File 'lib/google/apis/books_v1/classes.rb', line 2245

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2252
2253
2254
2255
# File 'lib/google/apis/books_v1/classes.rb', line 2252

def update!(**args)
  @items = args[:items] if args.key?(:items)
  @kind = args[:kind] if args.key?(:kind)
end