Class: Google::Apis::BooksV1::Volume::LayerInfo::Layer

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

Returns a new instance of Layer.


3297
3298
3299
# File 'generated/google/apis/books_v1/classes.rb', line 3297

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

Instance Attribute Details

#layer_idString

The layer id of this layer (e.g. "geo"). Corresponds to the JSON property layerId

Returns:

  • (String)

3288
3289
3290
# File 'generated/google/apis/books_v1/classes.rb', line 3288

def layer_id
  @layer_id
end

#volume_annotations_versionString

The current version of this layer's volume annotations. Note that this version applies only to the data in the books.layers.volumeAnnotations.* responses. The actual annotation data is versioned separately. Corresponds to the JSON property volumeAnnotationsVersion

Returns:

  • (String)

3295
3296
3297
# File 'generated/google/apis/books_v1/classes.rb', line 3295

def volume_annotations_version
  @volume_annotations_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


3302
3303
3304
3305
# File 'generated/google/apis/books_v1/classes.rb', line 3302

def update!(**args)
  @layer_id = args[:layer_id] if args.key?(:layer_id)
  @volume_annotations_version = args[:volume_annotations_version] if args.key?(:volume_annotations_version)
end