class Google::Apis::TranslateV2::DetectionsResource

Attributes

confidence[RW]

The confidence of the detection result of this language. Corresponds to the JSON property `confidence` @return [Float]

is_reliable[RW]

A boolean to indicate is the language detection result reliable. Corresponds to the JSON property `isReliable` @return [Boolean]

is_reliable?[RW]

A boolean to indicate is the language detection result reliable. Corresponds to the JSON property `isReliable` @return [Boolean]

language[RW]

The language we detected. Corresponds to the JSON property `language` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/translate_v2/classes.rb, line 84
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/translate_v2/classes.rb, line 89
def update!(**args)
  @confidence = args[:confidence] if args.key?(:confidence)
  @is_reliable = args[:is_reliable] if args.key?(:is_reliable)
  @language = args[:language] if args.key?(:language)
end