Class: Google::Apis::FusiontablesV2::Template
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::FusiontablesV2::Template
 
 
- 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
- 
  
    
      #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 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The kind of item this is.
 - 
  
    
      #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
      994 995 996  | 
    
      # File 'generated/google/apis/fusiontables_v2/classes.rb', line 994 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
      965 966 967  | 
    
      # File 'generated/google/apis/fusiontables_v2/classes.rb', line 965 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
      972 973 974  | 
    
      # File 'generated/google/apis/fusiontables_v2/classes.rb', line 972 def body @body end  | 
  
#kind ⇒ String
The kind of item this is. For a template, this is always fusiontables#template.
Corresponds to the JSON property kind
      977 978 979  | 
    
      # File 'generated/google/apis/fusiontables_v2/classes.rb', line 977 def kind @kind end  | 
  
#name ⇒ String
Optional name assigned to a template.
Corresponds to the JSON property name
      982 983 984  | 
    
      # File 'generated/google/apis/fusiontables_v2/classes.rb', line 982 def name @name end  | 
  
#table_id ⇒ String
Identifier for the table for which the template is defined.
Corresponds to the JSON property tableId
      987 988 989  | 
    
      # File 'generated/google/apis/fusiontables_v2/classes.rb', line 987 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
      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  |