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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Item

Returns a new instance of Item



2137
2138
2139
# File 'generated/google/apis/books_v1/classes.rb', line 2137

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

Instance Attribute Details

#art_urlString

Corresponds to the JSON property artUrl

Returns:

  • (String)


2120
2121
2122
# File 'generated/google/apis/books_v1/classes.rb', line 2120

def art_url
  @art_url
end

#gservices_keyString

Corresponds to the JSON property gservicesKey

Returns:

  • (String)


2125
2126
2127
# File 'generated/google/apis/books_v1/classes.rb', line 2125

def gservices_key
  @gservices_key
end

#idString

Corresponds to the JSON property id

Returns:

  • (String)


2130
2131
2132
# File 'generated/google/apis/books_v1/classes.rb', line 2130

def id
  @id
end

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

Corresponds to the JSON property items



2135
2136
2137
# File 'generated/google/apis/books_v1/classes.rb', line 2135

def items
  @items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2142
2143
2144
2145
2146
2147
# File 'generated/google/apis/books_v1/classes.rb', line 2142

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