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.



8916
8917
8918
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8916

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)


8903
8904
8905
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8903

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)


8909
8910
8911
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8909

def language
  @language
end

#valueString

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

Returns:

  • (String)


8914
8915
8916
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8914

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8921
8922
8923
8924
8925
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8921

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