Class: Sunrise::Models::StructureType

Inherits:
Object
  • Object
show all
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.



5
6
7
# File 'lib/sunrise/models/structure_type.rb', line 5

def initialize(value)
  @kind = value
end

Instance Attribute Details

#kindObject (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

#titleObject



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

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