Module: Priora::ClassMethods

Defined in:
lib/priora/class_methods.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#prioritiesObject (readonly)

Returns the value of attribute priorities


3
4
5
# File 'lib/priora/class_methods.rb', line 3

def priorities
  @priorities
end

Instance Method Details

#prioritize_by(*raw_priorities) ⇒ Object


5
6
7
# File 'lib/priora/class_methods.rb', line 5

def prioritize_by(*raw_priorities)
  @priorities = raw_priorities.map { |raw_priority| Priora::PriorityBuilder.build(raw_priority) }
end