lib/kentaa/api/resources/registration_fee.rb in kentaa-api-0.7.2 vs lib/kentaa/api/resources/registration_fee.rb in kentaa-api-0.8.0
- old
+ new
@@ -2,11 +2,17 @@
module Kentaa
module Api
module Resources
class RegistrationFee
+ attr_reader :data
+
+ def initialize(data)
+ @data = data
+ end
+
def amount
- data[:amount]
+ BigDecimal(data[:amount])
end
def title
data[:title]
end