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

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

Returns a new instance of Common.



1770
1771
1772
# File 'lib/google/apis/books_v1/classes.rb', line 1770

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

Instance Attribute Details

#langString

The language of the information url and description. Corresponds to the JSON property lang

Returns:

  • (String)


1747
1748
1749
# File 'lib/google/apis/books_v1/classes.rb', line 1747

def lang
  @lang
end

#preview_image_urlString

The URL for the preview image information. Corresponds to the JSON property previewImageUrl

Returns:

  • (String)


1752
1753
1754
# File 'lib/google/apis/books_v1/classes.rb', line 1752

def preview_image_url
  @preview_image_url
end

#snippetString

The description for this location. Corresponds to the JSON property snippet

Returns:

  • (String)


1757
1758
1759
# File 'lib/google/apis/books_v1/classes.rb', line 1757

def snippet
  @snippet
end

#snippet_urlString

The URL for information for this location. Ex: wikipedia link. Corresponds to the JSON property snippetUrl

Returns:

  • (String)


1762
1763
1764
# File 'lib/google/apis/books_v1/classes.rb', line 1762

def snippet_url
  @snippet_url
end

#titleString

The display title and localized canonical name to use when searching for this entity on Google search. Corresponds to the JSON property title

Returns:

  • (String)


1768
1769
1770
# File 'lib/google/apis/books_v1/classes.rb', line 1768

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1775
1776
1777
1778
1779
1780
1781
# File 'lib/google/apis/books_v1/classes.rb', line 1775

def update!(**args)
  @lang = args[:lang] if args.key?(:lang)
  @preview_image_url = args[:preview_image_url] if args.key?(:preview_image_url)
  @snippet = args[:snippet] if args.key?(:snippet)
  @snippet_url = args[:snippet_url] if args.key?(:snippet_url)
  @title = args[:title] if args.key?(:title)
end