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