Class: Google::Apis::FusiontablesV1::Template
- Inherits:
-
Object
- Object
- Google::Apis::FusiontablesV1::Template
- 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
-
#automatic_column_names ⇒ Array<String>
List of columns from which the template is to be automatically constructed.
-
#body ⇒ String
Body of the template.
-
#kind ⇒ String
Type name: a template for the info window contents.
-
#name ⇒ String
Optional name assigned to a template.
-
#table_id ⇒ String
Identifier for the table for which the template is defined.
-
#template_id ⇒ Fixnum
Identifier for the template, unique within the context of a particular table.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Template
constructor
A new instance of Template.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_names ⇒ Array<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
892 893 894 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 892 def automatic_column_names @automatic_column_names end |
#body ⇒ String
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
899 900 901 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 899 def body @body end |
#kind ⇒ String
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
906 907 908 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 906 def kind @kind end |
#name ⇒ String
Optional name assigned to a template.
Corresponds to the JSON property name
911 912 913 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 911 def name @name end |
#table_id ⇒ String
Identifier for the table for which the template is defined.
Corresponds to the JSON property tableId
916 917 918 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 916 def table_id @table_id end |
#template_id ⇒ Fixnum
Identifier for the template, unique within the context of a particular table.
Corresponds to the JSON property templateId
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 |