Class: Google::Apis::YoutubereportingV1::GdataContentTypeInfo

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

Overview

gdata

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

Returns a new instance of GdataContentTypeInfo



202
203
204
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 202

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

Instance Attribute Details

#best_guessString

gdata Corresponds to the JSON property bestGuess

Returns:

  • (String)


180
181
182
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 180

def best_guess
  @best_guess
end

#from_bytesString

gdata Corresponds to the JSON property fromBytes

Returns:

  • (String)


185
186
187
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 185

def from_bytes
  @from_bytes
end

#from_file_nameString

gdata Corresponds to the JSON property fromFileName

Returns:

  • (String)


190
191
192
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 190

def from_file_name
  @from_file_name
end

#from_headerString

gdata Corresponds to the JSON property fromHeader

Returns:

  • (String)


195
196
197
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 195

def from_header
  @from_header
end

#from_url_pathString

gdata Corresponds to the JSON property fromUrlPath

Returns:

  • (String)


200
201
202
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 200

def from_url_path
  @from_url_path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



207
208
209
210
211
212
213
# File 'generated/google/apis/youtubereporting_v1/classes.rb', line 207

def update!(**args)
  @best_guess = args[:best_guess] if args.key?(:best_guess)
  @from_bytes = args[:from_bytes] if args.key?(:from_bytes)
  @from_file_name = args[:from_file_name] if args.key?(:from_file_name)
  @from_header = args[:from_header] if args.key?(:from_header)
  @from_url_path = args[:from_url_path] if args.key?(:from_url_path)
end