Class: Rea::AspectType::Classification::MemberType
- Defined in:
- lib/rea/aspect_type/classification.rb
Instance Attribute Summary collapse
-
#category_type_name ⇒ Object
readonly
Returns the value of attribute category_type_name.
-
#multiple_select ⇒ Object
readonly
Returns the value of attribute multiple_select.
Attributes inherited from Base
Instance Method Summary collapse
- #category(name, options = {}) ⇒ Object
- #category_options ⇒ Object
-
#initialize(options = {}) ⇒ MemberType
constructor
A new instance of MemberType.
Constructor Details
#initialize(options = {}) ⇒ MemberType
Returns a new instance of MemberType.
125 126 127 128 |
# File 'lib/rea/aspect_type/classification.rb', line 125 def initialize ={} super @multiple_select = [:multiple_select] || false end |
Instance Attribute Details
#category_type_name ⇒ Object (readonly)
Returns the value of attribute category_type_name.
123 124 125 |
# File 'lib/rea/aspect_type/classification.rb', line 123 def category_type_name @category_type_name end |
#multiple_select ⇒ Object (readonly)
Returns the value of attribute multiple_select.
123 124 125 |
# File 'lib/rea/aspect_type/classification.rb', line 123 def multiple_select @multiple_select end |
Instance Method Details
#category(name, options = {}) ⇒ Object
130 131 132 |
# File 'lib/rea/aspect_type/classification.rb', line 130 def category name, ={} @category_type_name = name end |
#category_options ⇒ Object
134 135 136 |
# File 'lib/rea/aspect_type/classification.rb', line 134 def Rea::CategoryType.find_by_name(category_type_name).categories end |