Class: Freeberry::Models::PositionType

Inherits:
Object
  • Object
show all
Defined in:
lib/freeberry/models/position_type.rb

Direct Known Subclasses

PositionType

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code) ⇒ PositionType

Returns a new instance of PositionType.



4
5
6
# File 'lib/freeberry/models/position_type.rb', line 4

def initialize(code)
  @code = code.to_sym
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



7
8
9
# File 'lib/freeberry/models/position_type.rb', line 7

def code
  @code
end

Instance Method Details

#titleObject



9
10
11
# File 'lib/freeberry/models/position_type.rb', line 9

def title
  I18n.t(@code, :scope => [:manage, :structure, :position])
end