lib/fawry/fawry_request.rb in fawry-1.1.1 vs lib/fawry/fawry_request.rb in fawry-1.2.1
- old
+ new
@@ -16,11 +16,10 @@
private
# rubocop:disable Metrics/MethodLength
# rubocop:disable Metrics/AbcSize
- # rubocop:disable Metrics/CyclomaticComplexity
def build_request
case action
when 'charge'
self.class.include Requests::ChargeRequest
validate_charge_params!
@@ -44,10 +43,9 @@
when 'delete_token'
self.class.include Requests::DeleteTokenRequest
validate_delete_token_params!
@request = build_delete_token_request
end
- # rubocop:enable Metrics/CyclomaticComplexity
# rubocop:enable Metrics/AbcSize
# rubocop:enable Metrics/MethodLength
end
end
end