Class: Google::Apis::WalletobjectsV1::ValueAddedModuleData

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

Overview

Data for Value Added module. Required fields are header and uri.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ValueAddedModuleData

Returns a new instance of ValueAddedModuleData.



9074
9075
9076
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 9074

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

Instance Attribute Details

#bodyGoogle::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



9042
9043
9044
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 9042

def body
  @body
end

#headerGoogle::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



9048
9049
9050
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 9048

def header
  @header
end

#imageGoogle::Apis::WalletobjectsV1::Image

Wrapping type for Google hosted images. Corresponds to the JSON property image



9053
9054
9055
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 9053

def image
  @image
end

#sort_indexFixnum

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

Returns:

  • (Fixnum)


9061
9062
9063
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 9061

def sort_index
  @sort_index
end

#uriString

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

Returns:

  • (String)


9067
9068
9069
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 9067

def uri
  @uri
end

#view_constraintsGoogle::Apis::WalletobjectsV1::ModuleViewConstraints

Constraints that all must be met for the module to be shown. Corresponds to the JSON property viewConstraints



9072
9073
9074
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 9072

def view_constraints
  @view_constraints
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9079
9080
9081
9082
9083
9084
9085
9086
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 9079

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