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

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

Defined Under Namespace

Classes: Common, Geo

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GeoLayerData

Returns a new instance of GeoLayerData.



1729
1730
1731
# File 'lib/google/apis/books_v1/classes.rb', line 1729

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

Instance Attribute Details

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

Corresponds to the JSON property common



1717
1718
1719
# File 'lib/google/apis/books_v1/classes.rb', line 1717

def common
  @common
end

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

Corresponds to the JSON property geo



1722
1723
1724
# File 'lib/google/apis/books_v1/classes.rb', line 1722

def geo
  @geo
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


1727
1728
1729
# File 'lib/google/apis/books_v1/classes.rb', line 1727

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1734
1735
1736
1737
1738
# File 'lib/google/apis/books_v1/classes.rb', line 1734

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