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

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

Returns a new instance of LoadingResource.



467
468
469
# File 'lib/google/apis/books_v1/classes.rb', line 467

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

Instance Attribute Details

#authorString

Corresponds to the JSON property author

Returns:

  • (String)


450
451
452
# File 'lib/google/apis/books_v1/classes.rb', line 450

def author
  @author
end

#processing_stateString

Corresponds to the JSON property processingState

Returns:

  • (String)


455
456
457
# File 'lib/google/apis/books_v1/classes.rb', line 455

def processing_state
  @processing_state
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


460
461
462
# File 'lib/google/apis/books_v1/classes.rb', line 460

def title
  @title
end

#volume_idString

Corresponds to the JSON property volumeId

Returns:

  • (String)


465
466
467
# File 'lib/google/apis/books_v1/classes.rb', line 465

def volume_id
  @volume_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



472
473
474
475
476
477
# File 'lib/google/apis/books_v1/classes.rb', line 472

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