Sha256: 1890610d24ed20b45484923b48c1f78992728daf5fb935e8a9b222bc918ce6ab

Contents?: true

Size: 370 Bytes

Versions: 17

Compression:

Stored size: 370 Bytes

Contents

module Locomotive::Steam
  class Section

    include Locomotive::Steam::Models::Entity

    def initialize(attributes = {})
      super({
        slug:       nil,
        template:   nil,
        source:     nil,
        definition: nil
      }.merge(attributes))
    end

    def source
      self[:template]
    end

    def type
      self[:slug]
    end

  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
locomotivecms_steam-1.8.0.alpha2 lib/locomotive/steam/entities/section.rb
locomotivecms_steam-1.8.0.alpha1 lib/locomotive/steam/entities/section.rb
locomotivecms_steam-1.7.1 lib/locomotive/steam/entities/section.rb
locomotivecms_steam-1.7.0 lib/locomotive/steam/entities/section.rb
locomotivecms_steam-1.6.1 lib/locomotive/steam/entities/section.rb
locomotivecms_steam-1.6.0 lib/locomotive/steam/entities/section.rb
locomotivecms_steam-1.6.0.rc1 lib/locomotive/steam/entities/section.rb
locomotivecms_steam-1.6.0.beta1 lib/locomotive/steam/entities/section.rb
locomotivecms_steam-1.5.3 lib/locomotive/steam/entities/section.rb
locomotivecms_steam-1.5.2 lib/locomotive/steam/entities/section.rb
locomotivecms_steam-1.5.1 lib/locomotive/steam/entities/section.rb
locomotivecms_steam-1.5.0 lib/locomotive/steam/entities/section.rb
locomotivecms_steam-1.5.0.rc1 lib/locomotive/steam/entities/section.rb
locomotivecms_steam-1.5.0.rc0 lib/locomotive/steam/entities/section.rb
locomotivecms_steam-1.5.0.beta3 lib/locomotive/steam/entities/section.rb
locomotivecms_steam-1.5.0.beta2 lib/locomotive/steam/entities/section.rb
locomotivecms_steam-1.5.0.beta1 lib/locomotive/steam/entities/section.rb