Class: Google::Apis::ContentV2_1::DatafeedFormat

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DatafeedFormat

Returns a new instance of DatafeedFormat.



3788
3789
3790
# File 'lib/google/apis/content_v2_1/classes.rb', line 3788

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. Acceptable values are: - "pipe" - "tab" - "tilde" Corresponds to the JSON property columnDelimiter

Returns:

  • (String)


3772
3773
3774
# File 'lib/google/apis/content_v2_1/classes.rb', line 3772

def column_delimiter
  @column_delimiter
end

#file_encodingString

Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Acceptable values are: - "latin-1" - "utf-16be" - " utf-16le" - "utf-8" - "windows-1252" Corresponds to the JSON property fileEncoding

Returns:

  • (String)


3779
3780
3781
# File 'lib/google/apis/content_v2_1/classes.rb', line 3779

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. Acceptable values are: - " normal character" - "value quoting" Corresponds to the JSON property quotingMode

Returns:

  • (String)


3786
3787
3788
# File 'lib/google/apis/content_v2_1/classes.rb', line 3786

def quoting_mode
  @quoting_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3793
3794
3795
3796
3797
# File 'lib/google/apis/content_v2_1/classes.rb', line 3793

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