Class: Google::Apis::FusiontablesV2::Template

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/fusiontables_v2/classes.rb,
generated/google/apis/fusiontables_v2/representations.rb,
generated/google/apis/fusiontables_v2/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



994
995
996
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 994

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


965
966
967
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 965

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)


972
973
974
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 972

def body
  @body
end

#kindString

The kind of item this is. For a template, this is always fusiontables#template. Corresponds to the JSON property kind

Returns:

  • (String)


977
978
979
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 977

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


982
983
984
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 982

def name
  @name
end

#table_idString

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

Returns:

  • (String)


987
988
989
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 987

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)


992
993
994
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 992

def template_id
  @template_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



999
1000
1001
1002
1003
1004
1005
1006
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 999

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