Sha256: 72bfaee0f0579f6603afbcdbff42034e60e8fa762ea791ee4cf0f1ecff10205f

Contents?: true

Size: 272 Bytes

Versions: 5

Compression:

Stored size: 272 Bytes

Contents

# encoding: utf-8
module Freeberry
  module Models
    class StructureType
      def initialize(value)
        @kind = value
      end
      attr_reader :kind
      
      def title
        I18n.t(@kind, :scope => [:manage, :structure, :kind])
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
freeberry-0.3.0 lib/freeberry/models/structure_type.rb
freeberry-0.2.9 lib/freeberry/models/structure_type.rb
freeberry-0.2.7 lib/freeberry/models/structure_type.rb
freeberry-0.2.6 lib/freeberry/models/structure_type.rb
freeberry-0.2.5 lib/freeberry/models/structure_type.rb