Class: Google::Apis::BooksV1::Bookshelf
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::BooksV1::Bookshelf
 
 
- 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
- 
  
    
      #access  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Whether this bookshelf is PUBLIC or PRIVATE.
 - 
  
    
      #created  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Created time for this bookshelf (formatted UTC timestamp with millisecond resolution).
 - 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Description of this bookshelf.
 - 
  
    
      #id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Id of this bookshelf, only unique by user.
 - 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Resource type for bookshelf metadata.
 - 
  
    
      #self_link  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
URL to this resource.
 - 
  
    
      #title  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Title of this bookshelf.
 - 
  
    
      #updated  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Last modified time of this bookshelf (formatted UTC timestamp with millisecond resolution).
 - 
  
    
      #volume_count  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Number of volumes in this bookshelf.
 - 
  
    
      #volumes_last_updated  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Last time a volume was added or removed from this bookshelf (formatted UTC timestamp with millisecond resolution).
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Bookshelf 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Bookshelf.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Bookshelf
Returns a new instance of Bookshelf
      625 626 627  | 
    
      # File 'generated/google/apis/books_v1/classes.rb', line 625 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#access ⇒ String
Whether this bookshelf is PUBLIC or PRIVATE.
Corresponds to the JSON property access
      575 576 577  | 
    
      # File 'generated/google/apis/books_v1/classes.rb', line 575 def access @access end  | 
  
#created ⇒ DateTime
Created time for this bookshelf (formatted UTC timestamp with millisecond
resolution).
Corresponds to the JSON property created
      581 582 583  | 
    
      # File 'generated/google/apis/books_v1/classes.rb', line 581 def created @created end  | 
  
#description ⇒ String
Description of this bookshelf.
Corresponds to the JSON property description
      586 587 588  | 
    
      # File 'generated/google/apis/books_v1/classes.rb', line 586 def description @description end  | 
  
#id ⇒ Fixnum
Id of this bookshelf, only unique by user.
Corresponds to the JSON property id
      591 592 593  | 
    
      # File 'generated/google/apis/books_v1/classes.rb', line 591 def id @id end  | 
  
#kind ⇒ String
Resource type for bookshelf metadata.
Corresponds to the JSON property kind
      596 597 598  | 
    
      # File 'generated/google/apis/books_v1/classes.rb', line 596 def kind @kind end  | 
  
#self_link ⇒ String
URL to this resource.
Corresponds to the JSON property selfLink
      601 602 603  | 
    
      # File 'generated/google/apis/books_v1/classes.rb', line 601 def self_link @self_link end  | 
  
#title ⇒ String
Title of this bookshelf.
Corresponds to the JSON property title
      606 607 608  | 
    
      # File 'generated/google/apis/books_v1/classes.rb', line 606 def title @title end  | 
  
#updated ⇒ DateTime
Last modified time of this bookshelf (formatted UTC timestamp with millisecond
resolution).
Corresponds to the JSON property updated
      612 613 614  | 
    
      # File 'generated/google/apis/books_v1/classes.rb', line 612 def updated @updated end  | 
  
#volume_count ⇒ Fixnum
Number of volumes in this bookshelf.
Corresponds to the JSON property volumeCount
      617 618 619  | 
    
      # File 'generated/google/apis/books_v1/classes.rb', line 617 def volume_count @volume_count end  | 
  
#volumes_last_updated ⇒ DateTime
Last time a volume was added or removed from this bookshelf (formatted UTC
timestamp with millisecond resolution).
Corresponds to the JSON property volumesLastUpdated
      623 624 625  | 
    
      # File 'generated/google/apis/books_v1/classes.rb', line 623 def volumes_last_updated @volumes_last_updated end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      630 631 632 633 634 635 636 637 638 639 640 641  | 
    
      # File 'generated/google/apis/books_v1/classes.rb', line 630 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  |