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

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


1613
1614
1615
# File 'generated/google/apis/books_v1/classes.rb', line 1613

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

Instance Attribute Details

#langString

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


1590
1591
1592
# File 'generated/google/apis/books_v1/classes.rb', line 1590

def lang
  @lang
end

#preview_image_urlString

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


1595
1596
1597
# File 'generated/google/apis/books_v1/classes.rb', line 1595

def preview_image_url
  @preview_image_url
end

#snippetString

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


1600
1601
1602
# File 'generated/google/apis/books_v1/classes.rb', line 1600

def snippet
  @snippet
end

#snippet_urlString

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


1605
1606
1607
# File 'generated/google/apis/books_v1/classes.rb', line 1605

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


1611
1612
1613
# File 'generated/google/apis/books_v1/classes.rb', line 1611

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1618
1619
1620
1621
1622
1623
1624
# File 'generated/google/apis/books_v1/classes.rb', line 1618

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