Class: Sunrise::Models::StructureType
- Inherits:
-
Object
- Object
- Sunrise::Models::StructureType
- Defined in:
- lib/sunrise/models/structure_type.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
Instance Method Summary collapse
-
#initialize(value) ⇒ StructureType
constructor
A new instance of StructureType.
- #title ⇒ Object
Constructor Details
#initialize(value) ⇒ StructureType
Returns a new instance of StructureType.
5 6 7 |
# File 'lib/sunrise/models/structure_type.rb', line 5 def initialize(value) @kind = value end |
Instance Attribute Details
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
8 9 10 |
# File 'lib/sunrise/models/structure_type.rb', line 8 def kind @kind end |
Instance Method Details
#title ⇒ Object
10 11 12 |
# File 'lib/sunrise/models/structure_type.rb', line 10 def title I18n.t(@kind, :scope => [:manage, :structure, :kind]) end |