Class: FatZebra::Utilities::Mastercard::ClickToPay::Registration
- Inherits:
-
APIResource
- Object
- FatZebraObject
- APIResource
- FatZebra::Utilities::Mastercard::ClickToPay::Registration
- Defined in:
- lib/fat_zebra/utilities/mastercard/click_to_pay/registration.rb
Constant Summary collapse
- ENDPOINT_URL =
'/v1.0/utilities/mastercard/click_to_pay/registration'
Instance Attribute Summary
Attributes inherited from FatZebraObject
Attributes included from ObjectHelper
Class Method Summary collapse
-
.register! ⇒ FatZebra::Utilities::Mastercard::ClickToPay::Registration
Register with Mastercard Click To Pay.
-
.registered? ⇒ FatZebra::Utilities::Mastercard::ClickToPay::Registration
Lookup regisrtation with Mastercard Click To Pay.
Methods inherited from APIResource
Methods included from APIHelper
included, #request, #resource_name, #resource_path
Methods inherited from FatZebraObject
initialize_from, #load_response_api, #update_from
Methods included from Validation
#errors, #valid!, #valid?, #validates
Methods included from ObjectHelper
#[], #[]=, #add_accessor, #add_accessors, #add_data, #initialize, #inspect, #keys, #method_missing, #remove_accessor, #to_hash, #to_json, #update_attributes
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class FatZebra::ObjectHelper
Class Method Details
.register! ⇒ FatZebra::Utilities::Mastercard::ClickToPay::Registration
Register with Mastercard Click To Pay
17 18 19 20 |
# File 'lib/fat_zebra/utilities/mastercard/click_to_pay/registration.rb', line 17 def register! response = request(:post, ENDPOINT_URL) initialize_from(response) end |
.registered? ⇒ FatZebra::Utilities::Mastercard::ClickToPay::Registration
Lookup regisrtation with Mastercard Click To Pay
26 27 28 29 |
# File 'lib/fat_zebra/utilities/mastercard/click_to_pay/registration.rb', line 26 def registered? response = request(:get, ENDPOINT_URL) initialize_from(response) end |