Class: Ecertic::API::OTPsService
- Defined in:
- lib/ecertic/api/otps_service.rb
Instance Attribute Summary
Attributes inherited from Service
Instance Method Summary collapse
Methods inherited from Service
Constructor Details
This class inherits a constructor from Ecertic::API::Service
Instance Method Details
#create(attributes, options = {}) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/ecertic/api/otps_service.rb', line 6 def create(attributes, = {}) Ecertic::Utils.validate_mandatory_attributes(attributes, [:movil, :pdf_files]) attributes[:pdf_files] = Utils.encode_files(attributes[:pdf_files]) response = client.post("/sms", attributes, ) Resource::OTP::Request.new(response.body) end |