Sha256: 4b1103c09c2530574325fcbc87353a4049bf36a274ac9e217b457ca6fbb4c8c3

Contents?: true

Size: 388 Bytes

Versions: 1

Compression:

Stored size: 388 Bytes

Contents

module Workarea
  module Admin
    class SegmentViewModel < ApplicationViewModel
      include CommentableViewModel

      def timeline
        @timeline ||= TimelineViewModel.new(model)
      end

      def life_cycle?
        model.is_a?(Segment::LifeCycle)
      end

      def insights
        @insights ||= Insights::SegmentViewModel.wrap(model, options)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
workarea-admin-3.5.0.beta.1 app/view_models/workarea/admin/segment_view_model.rb