lib/kentaa/api/resources/consent.rb in kentaa-api-0.3.2 vs lib/kentaa/api/resources/consent.rb in kentaa-api-0.4.0
- old
+ new
@@ -1,10 +1,16 @@
# frozen_string_literal: true
module Kentaa
module Api
module Resources
- class Consent < Resource
+ class Consent
+ attr_reader :data
+
+ def initialize(data)
+ @data = data
+ end
+
def url
data[:url]
end
def text