cartodb/app/models/carto/grantable.rb
2020-06-15 10:58:47 +08: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