Class: Google::Apis::FusiontablesV1::Template

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/fusiontables_v1/classes.rb,
generated/google/apis/fusiontables_v1/representations.rb,
generated/google/apis/fusiontables_v1/representations.rb

Overview

Represents the contents of InfoWindow templates.

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

Returns a new instance of Template



923
924
925
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 923

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

Instance Attribute Details

#automatic_column_namesArray<String>

List of columns from which the template is to be automatically constructed. Only one of body or automaticColumns can be specified. Corresponds to the JSON property automaticColumnNames

Returns:

  • (Array<String>)


892
893
894
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 892

def automatic_column_names
  @automatic_column_names
end

#bodyString

Body of the template. It contains HTML with column_name to insert values from a particular column. The body is sanitized to remove certain tags, e.g., script. Only one of body or automaticColumns can be specified. Corresponds to the JSON property body

Returns:

  • (String)


899
900
901
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 899

def body
  @body
end

#kindString

Type name: a template for the info window contents. The template can either include an HTML body or a list of columns from which the template is computed automatically. Corresponds to the JSON property kind

Returns:

  • (String)


906
907
908
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 906

def kind
  @kind
end

#nameString

Optional name assigned to a template. Corresponds to the JSON property name

Returns:

  • (String)


911
912
913
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 911

def name
  @name
end

#table_idString

Identifier for the table for which the template is defined. Corresponds to the JSON property tableId

Returns:

  • (String)


916
917
918
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 916

def table_id
  @table_id
end

#template_idFixnum

Identifier for the template, unique within the context of a particular table. Corresponds to the JSON property templateId

Returns:

  • (Fixnum)


921
922
923
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 921

def template_id
  @template_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



928
929
930
931
932
933
934
935
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 928

def update!(**args)
  @automatic_column_names = args[:automatic_column_names] if args.key?(:automatic_column_names)
  @body = args[:body] if args.key?(:body)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @table_id = args[:table_id] if args.key?(:table_id)
  @template_id = args[:template_id] if args.key?(:template_id)
end