Class: Sunrise::Models::StructureType

Inherits:
Object
  • Object
show all
Includes:
EnumField::DefineEnum
Defined in:
lib/sunrise/models/structure_type.rb

Direct Known Subclasses

StructureType

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ StructureType

Returns a new instance of StructureType.



9
10
11
# File 'lib/sunrise/models/structure_type.rb', line 9

def initialize(value)
  @kind = value.to_sym
end

Instance Attribute Details

#kindObject (readonly)

Returns the value of attribute kind.



7
8
9
# File 'lib/sunrise/models/structure_type.rb', line 7

def kind
  @kind
end

Instance Method Details

#titleObject



13
14
15
# File 'lib/sunrise/models/structure_type.rb', line 13

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