Class: Google::Apis::WalletobjectsV1::EventVenue

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) ⇒ EventVenue

Returns a new instance of EventVenue.



2206
2207
2208
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2206

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

Instance Attribute Details

#addressGoogle::Apis::WalletobjectsV1::LocalizedString

The address of the venue, such as "24 Willie Mays Plaza\nSan Francisco, CA 94107". Address lines are separated by line feed (\n) characters. This is required. Corresponds to the JSON property address



2193
2194
2195
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2193

def address
  @address
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " walletobjects#eventVenue". Corresponds to the JSON property kind

Returns:

  • (String)


2199
2200
2201
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2199

def kind
  @kind
end

#nameGoogle::Apis::WalletobjectsV1::LocalizedString

The name of the venue, such as "AT&T Park". This is required. Corresponds to the JSON property name



2204
2205
2206
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2204

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2211
2212
2213
2214
2215
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2211

def update!(**args)
  @address = args[:address] if args.key?(:address)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
end