class SBF::Client::DonationEndpoint
Public Instance Methods
create(entity_or_hash, with = {})
click to toggle source
Calls superclass method
SBF::Client::EntityEndpoint#create
# File lib/stbaldricks/endpoints/donation.rb, line 7 def create(entity_or_hash, with = {}) unless SBF::Client::Configuration.forwarded_for SBF::Client::LOG.warn do "SBF::Client No forwarded_for configured for the client on the donation create route. \ This may cause your app to be blocked from creating donations if too many errors occur." end end super end
external_sync(data)
click to toggle source
# File lib/stbaldricks/endpoints/donation.rb, line 17 def external_sync(data) response = SBF::Client::Api::Request.post_request("#{base_uri}/external_sync", data) unless ok?(response) parsed_response_body = JSON.parse(response.body).symbolize! error = SBF::Client::ErrorEntity.new(parsed_response_body) end SBF::Client::Api::Response.new(http_code: response.code, data: response, error: error) end