lib/balanced/resources/reversal.rb in balanced-0.8.2 vs lib/balanced/resources/reversal.rb in balanced-1.0.beta1
- old
+ new
@@ -4,17 +4,11 @@
# Reversal. Funds are returned to your Marketplace's Merchant Account
# proportional to the amount of the Reversal.
#
class Reversal
include Balanced::Resource
+ include Balanced::HypermediaRegistry
- def initialize attributes = {}
- Balanced::Utils.stringify_keys! attributes
- unless attributes.has_key? 'uri'
- attributes['uri'] = self.class.uri
- end
- super attributes
- end
-
+ define_hypermedia_types [:reversals]
end
end