module MangoApi::Repudiations
Provides API method delegates concerning the Repudiation
entity
Public Class Methods
get(id)
click to toggle source
Retrieves a repudiation entity.
@param id
[String] ID of the repudiation to retrieve @return [Repudiation] the requested Repudiation entity object
# File lib/mangopay/api/service/repudiations.rb, line 14 def get(id) uri = provide_uri(:get_repudiation, id) response = HttpClient.get(uri) parse response end
Private Class Methods
parse(response)
click to toggle source
Parses a JSON-originating hash into the corresponding Repudiation entity object.
@param response
[Hash] JSON-originating data hash @return [Repudiation] corresponding Repudiation entity object
# File lib/mangopay/api/service/repudiations.rb, line 27 def parse(response) MangoModel::Repudiation.new.dejsonify response end