Class: ONEAccess::DataObject::ProductGroup
- Inherits:
-
Object
- Object
- ONEAccess::DataObject::ProductGroup
- Extended by:
- Serializable
- Defined in:
- lib/oneaccess/data_object/product_group.rb
Instance Attribute Summary collapse
-
#contributor_org_id ⇒ Object
Returns the value of attribute contributor_org_id.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_default ⇒ Object
(also: #is_default?, #default?)
Returns the value of attribute is_default.
-
#name ⇒ Object
Returns the value of attribute name.
-
#status ⇒ Object
Returns the value of attribute status.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #active? ⇒ Boolean
- #events? ⇒ Boolean
- #inactive? ⇒ Boolean
- #models? ⇒ Boolean
- #private_events? ⇒ Boolean
- #research? ⇒ Boolean
Methods included from Serializable
Instance Attribute Details
#contributor_org_id ⇒ Object
Returns the value of attribute contributor_org_id.
15 16 17 |
# File 'lib/oneaccess/data_object/product_group.rb', line 15 def contributor_org_id @contributor_org_id end |
#description ⇒ Object
Returns the value of attribute description.
13 14 15 |
# File 'lib/oneaccess/data_object/product_group.rb', line 13 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
11 12 13 |
# File 'lib/oneaccess/data_object/product_group.rb', line 11 def id @id end |
#is_default ⇒ Object Also known as: is_default?, default?
Returns the value of attribute is_default.
17 18 19 |
# File 'lib/oneaccess/data_object/product_group.rb', line 17 def is_default @is_default end |
#name ⇒ Object
Returns the value of attribute name.
12 13 14 |
# File 'lib/oneaccess/data_object/product_group.rb', line 12 def name @name end |
#status ⇒ Object
Returns the value of attribute status.
14 15 16 |
# File 'lib/oneaccess/data_object/product_group.rb', line 14 def status @status end |
#type ⇒ Object
Returns the value of attribute type.
16 17 18 |
# File 'lib/oneaccess/data_object/product_group.rb', line 16 def type @type end |
Instance Method Details
#active? ⇒ Boolean
22 23 24 |
# File 'lib/oneaccess/data_object/product_group.rb', line 22 def active? status == ProductGroupStatus::ACTIVE end |
#events? ⇒ Boolean
38 39 40 |
# File 'lib/oneaccess/data_object/product_group.rb', line 38 def events? type == ProductType::EVENT end |
#inactive? ⇒ Boolean
26 27 28 |
# File 'lib/oneaccess/data_object/product_group.rb', line 26 def inactive? status == ProductGroupStatus::INACTIVE end |
#models? ⇒ Boolean
42 43 44 |
# File 'lib/oneaccess/data_object/product_group.rb', line 42 def models? type == ProductType::MODEL end |
#private_events? ⇒ Boolean
34 35 36 |
# File 'lib/oneaccess/data_object/product_group.rb', line 34 def private_events? type == ProductType::PRIVATE_EVENT end |
#research? ⇒ Boolean
30 31 32 |
# File 'lib/oneaccess/data_object/product_group.rb', line 30 def research? type == ProductType::RESEARCH end |