Class: GoogleWallet::Operations::EventTicket::PushClass
- Inherits:
-
Object
- Object
- GoogleWallet::Operations::EventTicket::PushClass
- Defined in:
- lib/google_wallet/operations/event_ticket/push_class.rb
Constant Summary collapse
- ENDPOINT =
'eventTicketClass'
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(resource:, access_token:) ⇒ PushClass
constructor
A new instance of PushClass.
Constructor Details
#initialize(resource:, access_token:) ⇒ PushClass
Returns a new instance of PushClass.
11 12 13 14 |
# File 'lib/google_wallet/operations/event_ticket/push_class.rb', line 11 def initialize(resource:, access_token:) @resource = resource @access_token = access_token end |
Instance Method Details
#call ⇒ Object
16 17 18 19 |
# File 'lib/google_wallet/operations/event_ticket/push_class.rb', line 16 def call return update_class if exists? create_class end |