Class: Google::Apis::BooksV1::GeoLayerData

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

Defined Under Namespace

Classes: Common, Geo

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

Returns a new instance of GeoLayerData



1642
1643
1644
# File 'generated/google/apis/books_v1/classes.rb', line 1642

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

Instance Attribute Details

#commonGoogle::Apis::BooksV1::GeoLayerData::Common

Corresponds to the JSON property common



1630
1631
1632
# File 'generated/google/apis/books_v1/classes.rb', line 1630

def common
  @common
end

#geoGoogle::Apis::BooksV1::GeoLayerData::Geo

Corresponds to the JSON property geo



1635
1636
1637
# File 'generated/google/apis/books_v1/classes.rb', line 1635

def geo
  @geo
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


1640
1641
1642
# File 'generated/google/apis/books_v1/classes.rb', line 1640

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1647
1648
1649
1650
1651
# File 'generated/google/apis/books_v1/classes.rb', line 1647

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