Sha256: fd5f28287e76c71135985e0f0b8dd9242ac8ad63f3f67841a9c92e98900fa30c

Contents?: true

Size: 270 Bytes

Versions: 9

Compression:

Stored size: 270 Bytes

Contents

# encoding: utf-8
module Sunrise
  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

9 entries across 9 versions & 1 rubygems

Version Path
sunrise-core-0.2.2 lib/sunrise/models/structure_type.rb
sunrise-core-0.2.1 lib/sunrise/models/structure_type.rb
sunrise-core-0.2.0 lib/sunrise/models/structure_type.rb
sunrise-core-0.1.5 lib/sunrise/models/structure_type.rb
sunrise-core-0.1.4 lib/sunrise/models/structure_type.rb
sunrise-core-0.1.3 lib/sunrise/models/structure_type.rb
sunrise-core-0.1.2 lib/sunrise/models/structure_type.rb
sunrise-core-0.1.1 lib/sunrise/models/structure_type.rb
sunrise-core-0.1.0 lib/sunrise/models/structure_type.rb