Sha256: 2185d2d36eb9281ec4e669eabbd6a7fd44c0092439833dfacb2ab1875e824584
Contents?: true
Size: 739 Bytes
Versions: 8
Compression:
Stored size: 739 Bytes
Contents
# frozen_string_literal: true module Flagsmith module Engine # OrganisationModel class Organisation attr_reader :id, :name, :feature_analitycs, :stop_serving_flags, :persist_trait_data def initialize(id:, name:, stop_serving_flags:, persist_trait_data:, feature_analitycs: nil) @id = id @name = name @feature_analitycs = feature_analitycs @stop_serving_flags = stop_serving_flags @persist_trait_data = persist_trait_data end def unique_slug "#{id}-#{name}" end class << self def build(json) new(**json.slice(:id, :name, :feature_analitycs, :stop_serving_flags, :persist_trait_data)) end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems