cartodb-4.42/app/models/carto/grantable.rb

16 lines
266 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
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