Class: ONEAccess::DataObject::ProductGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/oneaccess/data_object/product_group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contributor_org_idObject

Returns the value of attribute contributor_org_id.



11
12
13
# File 'lib/oneaccess/data_object/product_group.rb', line 11

def contributor_org_id
  @contributor_org_id
end

#descriptionObject

Returns the value of attribute description.



9
10
11
# File 'lib/oneaccess/data_object/product_group.rb', line 9

def description
  @description
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/oneaccess/data_object/product_group.rb', line 7

def id
  @id
end

#is_defaultObject Also known as: is_default?, default?

Returns the value of attribute is_default.



13
14
15
# File 'lib/oneaccess/data_object/product_group.rb', line 13

def is_default
  @is_default
end

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/oneaccess/data_object/product_group.rb', line 8

def name
  @name
end

#statusObject

Returns the value of attribute status.



10
11
12
# File 'lib/oneaccess/data_object/product_group.rb', line 10

def status
  @status
end

#typeObject

Returns the value of attribute type.



12
13
14
# File 'lib/oneaccess/data_object/product_group.rb', line 12

def type
  @type
end

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/oneaccess/data_object/product_group.rb', line 18

def active?
  status == ProductGroupStatus::ACTIVE
end

#events?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/oneaccess/data_object/product_group.rb', line 34

def events?
  type == ProductType::EVENT
end

#inactive?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/oneaccess/data_object/product_group.rb', line 22

def inactive?
  status == ProductGroupStatus::INACTIVE
end

#models?Boolean

Returns:

  • (Boolean)


38
39
40
# File 'lib/oneaccess/data_object/product_group.rb', line 38

def models?
  type == ProductType::MODEL
end

#private_events?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/oneaccess/data_object/product_group.rb', line 30

def private_events?
  type == ProductType::PRIVATE_EVENT
end

#research?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/oneaccess/data_object/product_group.rb', line 26

def research?
  type == ProductType::RESEARCH
end