cartodb-4.42/app/models/carto/grantable.rb
2024-04-06 05:25:13 +00:00

16 lines
266 B
Ruby

module Carto
class Grantable
attr_reader :id, :name, :type, :avatar_url
def initialize(attributes)
h = attributes.symbolize_keys
@id = h[:id]
@name = h[:name]
@type = h[:type]
@avatar_url = h[:avatar_url]
end
end
end