Class: Google::Apis::BooksV1::RequestAccessData

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

Returns a new instance of RequestAccessData.



2419
2420
2421
# File 'lib/google/apis/books_v1/classes.rb', line 2419

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

Instance Attribute Details

#concurrent_accessGoogle::Apis::BooksV1::ConcurrentAccessRestriction

A concurrent access response. Corresponds to the JSON property concurrentAccess



2407
2408
2409
# File 'lib/google/apis/books_v1/classes.rb', line 2407

def concurrent_access
  @concurrent_access
end

#download_accessGoogle::Apis::BooksV1::DownloadAccessRestriction

A download access response. Corresponds to the JSON property downloadAccess



2412
2413
2414
# File 'lib/google/apis/books_v1/classes.rb', line 2412

def download_access
  @download_access
end

#kindString

Resource type. Corresponds to the JSON property kind

Returns:

  • (String)


2417
2418
2419
# File 'lib/google/apis/books_v1/classes.rb', line 2417

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2424
2425
2426
2427
2428
# File 'lib/google/apis/books_v1/classes.rb', line 2424

def update!(**args)
  @concurrent_access = args[:concurrent_access] if args.key?(:concurrent_access)
  @download_access = args[:download_access] if args.key?(:download_access)
  @kind = args[:kind] if args.key?(:kind)
end