Sha256: 12515043259b23c8ed426754fbb50348fbd9717f5748edc3f9f2bf23add3d38c
Contents?: true
Size: 591 Bytes
Versions: 2
Compression:
Stored size: 591 Bytes
Contents
module Arpa module Entities class Profile attr_reader :id, :name, :description, :role_ids, :roles, :created_at, :updated_at, :removed def initialize(attrs = {}) attrs = attrs.with_indifferent_access @id = attrs[:id] @name = attrs[:name] @description = attrs[:description] @role_ids = attrs[:role_ids] || [] @roles = attrs[:roles] || [] @created_at = attrs[:created_at] @updated_at = attrs[:updated_at] @removed = attrs[:removed] || false end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
arpa-0.0.7 | lib/arpa/entities/profile.rb |
arpa-0.0.6 | lib/arpa/entities/profile.rb |