lib/kentaa/api/resources/newsletter_subscription.rb in kentaa-api-0.3.2 vs lib/kentaa/api/resources/newsletter_subscription.rb in kentaa-api-0.4.0
- old
+ new
@@ -57,15 +57,15 @@
def subscription_url
data[:subscription_url]
end
def consent
- @consent ||= Kentaa::Api::Resources::Consent.new(config, data: data[:consent]) if data[:consent]
+ @consent ||= Kentaa::Api::Resources::Consent.new(data[:consent]) if data[:consent]
end
- protected
+ private
- def load_resource(options)
+ def load_resource
request.get("/newsletter-subscriptions/#{id}", options)
end
end
end
end