Class: Rea::AspectType::MemberType

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Rea::AspectType::Base

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



66
67
68
# File 'lib/rea/aspect_type/classification_aspect.rb', line 66

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



66
67
68
# File 'lib/rea/aspect_type/classification_aspect.rb', line 66

def type
  @type
end

Instance Method Details

#category_optionsObject



68
69
70
71
# File 'lib/rea/aspect_type/classification_aspect.rb', line 68

def category_options
  category_type = ::Rea::CategoryType.find_by_name(self.type.to_s)
  category_type.categories
end