Sha256: 8f5e64d40c43529ef413729fa89cd9a6d1cd3345d49cca6cd0d3965bc74b7edd
Contents?: true
Size: 938 Bytes
Versions: 6
Compression:
Stored size: 938 Bytes
Contents
# frozen_string_literal: true require_relative "./representer/product_group" module ONEAccess module DataObject class ProductGroup extend Serializable represented_by Representer::ProductGroup attr_accessor :id attr_accessor :name attr_accessor :description attr_accessor :status attr_accessor :contributor_org_id attr_accessor :type attr_accessor :is_default alias is_default? is_default alias default? is_default def active? status == ProductGroupStatus::ACTIVE end def inactive? status == ProductGroupStatus::INACTIVE end def research? type == ProductType::RESEARCH end def private_events? type == ProductType::PRIVATE_EVENT end def events? type == ProductType::EVENT end def models? type == ProductType::MODEL end end end end
Version data entries
6 entries across 6 versions & 1 rubygems