Class: Google::Apis::WalletobjectsV1::GroupingInfo
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::GroupingInfo
- 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
-
#grouping_id ⇒ String
Optional grouping ID for grouping the passes with the same ID visually together.
-
#sort_index ⇒ Fixnum
Optional index for sorting the passes when they are grouped with other passes.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GroupingInfo
constructor
A new instance of GroupingInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GroupingInfo
Returns a new instance of GroupingInfo.
4190 4191 4192 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4190 def initialize(**args) update!(**args) end |
Instance Attribute Details
#grouping_id ⇒ String
Optional grouping ID for grouping the passes with the same ID visually
together. Grouping with different types of passes is allowed.
Corresponds to the JSON property groupingId
4180 4181 4182 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4180 def grouping_id @grouping_id end |
#sort_index ⇒ Fixnum
Optional index for sorting the passes when they are grouped with other passes.
Passes with lower sort index are shown before passes with higher sort index.
If unspecified, the value is assumed to be INT_MAX. For two passes with the
same sort index, the sorting behavior is undefined.
Corresponds to the JSON property sortIndex
4188 4189 4190 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4188 def sort_index @sort_index end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4195 4196 4197 4198 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4195 def update!(**args) @grouping_id = args[:grouping_id] if args.key?(:grouping_id) @sort_index = args[:sort_index] if args.key?(:sort_index) end |