Class: Google::Apis::WalletobjectsV1::ValueAddedModuleData
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::ValueAddedModuleData
- 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
Overview
Data for Value Added module. Required fields are header and uri.
Instance Attribute Summary collapse
-
#body ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Body to be displayed on the module.
-
#header ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Header to be displayed on the module.
-
#image ⇒ Google::Apis::WalletobjectsV1::Image
Wrapping type for Google hosted images.
-
#sort_index ⇒ Fixnum
The index for sorting the modules.
-
#uri ⇒ String
URI that the module leads to on click.
-
#view_constraints ⇒ Google::Apis::WalletobjectsV1::ModuleViewConstraints
Constraints that all must be met for the module to be shown.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ValueAddedModuleData
constructor
A new instance of ValueAddedModuleData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ValueAddedModuleData
Returns a new instance of ValueAddedModuleData.
8980 8981 8982 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8980 def initialize(**args) update!(**args) end |
Instance Attribute Details
#body ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Body to be displayed on the module. Character limit is 50 and longer strings
will be truncated.
Corresponds to the JSON property body
8948 8949 8950 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8948 def body @body end |
#header ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Header to be displayed on the module. Character limit is 60 and longer strings
will be truncated.
Corresponds to the JSON property header
8954 8955 8956 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8954 def header @header end |
#image ⇒ Google::Apis::WalletobjectsV1::Image
Wrapping type for Google hosted images. Next ID: 7
Corresponds to the JSON property image
8959 8960 8961 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8959 def image @image end |
#sort_index ⇒ Fixnum
The index for sorting the modules. Modules with a lower sort index are shown
before modules with a higher sort index. If unspecified, the sort index is
assumed to be INT_MAX. For two modules with the same index, the sorting
behavior is undefined.
Corresponds to the JSON property sortIndex
8967 8968 8969 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8967 def sort_index @sort_index end |
#uri ⇒ String
URI that the module leads to on click. This can be a web link or a deep link
as mentioned in https://developer.android.com/training/app-links/deep-linking.
Corresponds to the JSON property uri
8973 8974 8975 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8973 def uri @uri end |
#view_constraints ⇒ Google::Apis::WalletobjectsV1::ModuleViewConstraints
Constraints that all must be met for the module to be shown.
Corresponds to the JSON property viewConstraints
8978 8979 8980 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8978 def view_constraints @view_constraints end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8985 8986 8987 8988 8989 8990 8991 8992 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8985 def update!(**args) @body = args[:body] if args.key?(:body) @header = args[:header] if args.key?(:header) @image = args[:image] if args.key?(:image) @sort_index = args[:sort_index] if args.key?(:sort_index) @uri = args[:uri] if args.key?(:uri) @view_constraints = args[:view_constraints] if args.key?(:view_constraints) end |