Class: GoogleWallet::Operations::EventTicket::PushClass

Inherits:
Object
  • Object
show all
Defined in:
lib/google_wallet/operations/event_ticket/push_class.rb

Constant Summary collapse

ENDPOINT =
'eventTicketClass'

Instance Method Summary collapse

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

#callObject



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