Class: Google::Apis::WalletobjectsV1::TranslatedString

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TranslatedString

Returns a new instance of TranslatedString.



8315
8316
8317
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8315

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

Instance Attribute Details

#kindString

Identifies what kind of resource this is. Value: the fixed string " walletobjects#translatedString". Corresponds to the JSON property kind

Returns:

  • (String)


8302
8303
8304
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8302

def kind
  @kind
end

#languageString

Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de", or "de-AT". Corresponds to the JSON property language

Returns:

  • (String)


8308
8309
8310
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8308

def language
  @language
end

#valueString

The UTF-8 encoded translated string. Corresponds to the JSON property value

Returns:

  • (String)


8313
8314
8315
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8313

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8320
8321
8322
8323
8324
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8320

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @language = args[:language] if args.key?(:language)
  @value = args[:value] if args.key?(:value)
end