Class: Google::Apis::BooksV1::LoadingResource

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

Returns a new instance of LoadingResource.



536
537
538
# File 'generated/google/apis/books_v1/classes.rb', line 536

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

Instance Attribute Details

#authorString

Corresponds to the JSON property author

Returns:

  • (String)


519
520
521
# File 'generated/google/apis/books_v1/classes.rb', line 519

def author
  @author
end

#processing_stateString

Corresponds to the JSON property processingState

Returns:

  • (String)


524
525
526
# File 'generated/google/apis/books_v1/classes.rb', line 524

def processing_state
  @processing_state
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


529
530
531
# File 'generated/google/apis/books_v1/classes.rb', line 529

def title
  @title
end

#volume_idString

Corresponds to the JSON property volumeId

Returns:

  • (String)


534
535
536
# File 'generated/google/apis/books_v1/classes.rb', line 534

def volume_id
  @volume_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



541
542
543
544
545
546
# File 'generated/google/apis/books_v1/classes.rb', line 541

def update!(**args)
  @author = args[:author] if args.key?(:author)
  @processing_state = args[:processing_state] if args.key?(:processing_state)
  @title = args[:title] if args.key?(:title)
  @volume_id = args[:volume_id] if args.key?(:volume_id)
end