Class: Google::Apis::BooksV1::Category::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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Item

Returns a new instance of Item.



643
644
645
# File 'lib/google/apis/books_v1/classes.rb', line 643

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

Instance Attribute Details

#badge_urlString

Corresponds to the JSON property badgeUrl

Returns:

  • (String)


631
632
633
# File 'lib/google/apis/books_v1/classes.rb', line 631

def badge_url
  @badge_url
end

#category_idString

Corresponds to the JSON property categoryId

Returns:

  • (String)


636
637
638
# File 'lib/google/apis/books_v1/classes.rb', line 636

def category_id
  @category_id
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


641
642
643
# File 'lib/google/apis/books_v1/classes.rb', line 641

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



648
649
650
651
652
# File 'lib/google/apis/books_v1/classes.rb', line 648

def update!(**args)
  @badge_url = args[:badge_url] if args.key?(:badge_url)
  @category_id = args[:category_id] if args.key?(:category_id)
  @name = args[:name] if args.key?(:name)
end