Class: Rea::AspectType::Classification::MemberType

Inherits:
Base
  • Object
show all
Defined in:
lib/rea/aspect_type/classification.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#base

Instance Method Summary collapse

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 options={}
  super
  @multiple_select = options[:multiple_select] || false
end

Instance Attribute Details

#category_type_nameObject (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_selectObject (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, options={}
  @category_type_name = name
end

#category_optionsObject



134
135
136
# File 'lib/rea/aspect_type/classification.rb', line 134

def category_options
  Rea::CategoryType.find_by_name(category_type_name).categories
end