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.
8818 8819 8820 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8818 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
8786 8787 8788 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8786 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
8792 8793 8794 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8792 def header @header end |
#image ⇒ Google::Apis::WalletobjectsV1::Image
Wrapping type for Google hosted images. Next ID: 7
Corresponds to the JSON property image
8797 8798 8799 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8797 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
8805 8806 8807 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8805 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
8811 8812 8813 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8811 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
8816 8817 8818 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8816 def view_constraints @view_constraints end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8823 8824 8825 8826 8827 8828 8829 8830 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8823 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 |