Class: Google::Apis::BooksV1::Bookshelf

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

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

Returns a new instance of Bookshelf.


624
625
626
# File 'generated/google/apis/books_v1/classes.rb', line 624

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

Instance Attribute Details

#accessString

Whether this bookshelf is PUBLIC or PRIVATE. Corresponds to the JSON property access

Returns:

  • (String)

574
575
576
# File 'generated/google/apis/books_v1/classes.rb', line 574

def access
  @access
end

#createdDateTime

Created time for this bookshelf (formatted UTC timestamp with millisecond resolution). Corresponds to the JSON property created

Returns:

  • (DateTime)

580
581
582
# File 'generated/google/apis/books_v1/classes.rb', line 580

def created
  @created
end

#descriptionString

Description of this bookshelf. Corresponds to the JSON property description

Returns:

  • (String)

585
586
587
# File 'generated/google/apis/books_v1/classes.rb', line 585

def description
  @description
end

#idFixnum

Id of this bookshelf, only unique by user. Corresponds to the JSON property id

Returns:

  • (Fixnum)

590
591
592
# File 'generated/google/apis/books_v1/classes.rb', line 590

def id
  @id
end

#kindString

Resource type for bookshelf metadata. Corresponds to the JSON property kind

Returns:

  • (String)

595
596
597
# File 'generated/google/apis/books_v1/classes.rb', line 595

def kind
  @kind
end

URL to this resource. Corresponds to the JSON property selfLink

Returns:

  • (String)

600
601
602
# File 'generated/google/apis/books_v1/classes.rb', line 600

def self_link
  @self_link
end

#titleString

Title of this bookshelf. Corresponds to the JSON property title

Returns:

  • (String)

605
606
607
# File 'generated/google/apis/books_v1/classes.rb', line 605

def title
  @title
end

#updatedDateTime

Last modified time of this bookshelf (formatted UTC timestamp with millisecond resolution). Corresponds to the JSON property updated

Returns:

  • (DateTime)

611
612
613
# File 'generated/google/apis/books_v1/classes.rb', line 611

def updated
  @updated
end

#volume_countFixnum

Number of volumes in this bookshelf. Corresponds to the JSON property volumeCount

Returns:

  • (Fixnum)

616
617
618
# File 'generated/google/apis/books_v1/classes.rb', line 616

def volume_count
  @volume_count
end

#volumes_last_updatedDateTime

Last time a volume was added or removed from this bookshelf (formatted UTC timestamp with millisecond resolution). Corresponds to the JSON property volumesLastUpdated

Returns:

  • (DateTime)

622
623
624
# File 'generated/google/apis/books_v1/classes.rb', line 622

def volumes_last_updated
  @volumes_last_updated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


629
630
631
632
633
634
635
636
637
638
639
640
# File 'generated/google/apis/books_v1/classes.rb', line 629

def update!(**args)
  @access = args[:access] if args.key?(:access)
  @created = args[:created] if args.key?(:created)
  @description = args[:description] if args.key?(:description)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @self_link = args[:self_link] if args.key?(:self_link)
  @title = args[:title] if args.key?(:title)
  @updated = args[:updated] if args.key?(:updated)
  @volume_count = args[:volume_count] if args.key?(:volume_count)
  @volumes_last_updated = args[:volumes_last_updated] if args.key?(:volumes_last_updated)
end