Class: GrubY::PreCheckoutQuery

Inherits:
BaseObject show all
Defined in:
lib/gruubY/types/bound_entities.rb

Instance Attribute Summary

Attributes inherited from BaseObject

#api, #client

Instance Method Summary collapse

Methods inherited from BaseObject

#[], #dig, field_names, fields, #initialize, #method_missing, #respond_to_missing?, #to_h

Constructor Details

This class inherits a constructor from GrubY::BaseObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class GrubY::BaseObject

Instance Method Details

#answer(ok:, error_message: nil) ⇒ Object



50
51
52
# File 'lib/gruubY/types/bound_entities.rb', line 50

def answer(ok:, error_message: nil)
  call_api("answerPreCheckoutQuery", { pre_checkout_query_id: id, ok: ok, error_message: error_message }.compact)
end