Class: Google::Apis::ContentV2::DatafeedFormat

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DatafeedFormat

Returns a new instance of DatafeedFormat.



1780
1781
1782
# File 'generated/google/apis/content_v2/classes.rb', line 1780

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

Instance Attribute Details

#column_delimiterString

Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds. Corresponds to the JSON property columnDelimiter

Returns:

  • (String)


1766
1767
1768
# File 'generated/google/apis/content_v2/classes.rb', line 1766

def column_delimiter
  @column_delimiter
end

#file_encodingString

Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Corresponds to the JSON property fileEncoding

Returns:

  • (String)


1772
1773
1774
# File 'generated/google/apis/content_v2/classes.rb', line 1772

def file_encoding
  @file_encoding
end

#quoting_modeString

Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. Corresponds to the JSON property quotingMode

Returns:

  • (String)


1778
1779
1780
# File 'generated/google/apis/content_v2/classes.rb', line 1778

def quoting_mode
  @quoting_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1785
1786
1787
1788
1789
# File 'generated/google/apis/content_v2/classes.rb', line 1785

def update!(**args)
  @column_delimiter = args[:column_delimiter] if args.key?(:column_delimiter)
  @file_encoding = args[:file_encoding] if args.key?(:file_encoding)
  @quoting_mode = args[:quoting_mode] if args.key?(:quoting_mode)
end