Class: Google::Apis::WalletobjectsV1::EventSeat

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

Returns a new instance of EventSeat.



1436
1437
1438
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1436

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

Instance Attribute Details

#gateGoogle::Apis::WalletobjectsV1::LocalizedString

The gate the ticket holder should enter to get to their seat, such as "A" or " West". This field is localizable so you may translate words or use different alphabets for the characters in an identifier. Corresponds to the JSON property gate



1408
1409
1410
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1408

def gate
  @gate
end

#kindString

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

Returns:

  • (String)


1414
1415
1416
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1414

def kind
  @kind
end

#rowGoogle::Apis::WalletobjectsV1::LocalizedString

The row of the seat, such as "1", E", "BB", or "A5". This field is localizable so you may translate words or use different alphabets for the characters in an identifier. Corresponds to the JSON property row



1421
1422
1423
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1421

def row
  @row
end

#seatGoogle::Apis::WalletobjectsV1::LocalizedString

The seat number, such as "1", "2", "3", or any other seat identifier. This field is localizable so you may translate words or use different alphabets for the characters in an identifier. Corresponds to the JSON property seat



1428
1429
1430
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1428

def seat
  @seat
end

#sectionGoogle::Apis::WalletobjectsV1::LocalizedString

The section of the seat, such as "121". This field is localizable so you may translate words or use different alphabets for the characters in an identifier. Corresponds to the JSON property section



1434
1435
1436
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1434

def section
  @section
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1441
1442
1443
1444
1445
1446
1447
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 1441

def update!(**args)
  @gate = args[:gate] if args.key?(:gate)
  @kind = args[:kind] if args.key?(:kind)
  @row = args[:row] if args.key?(:row)
  @seat = args[:seat] if args.key?(:seat)
  @section = args[:section] if args.key?(:section)
end