Sha256: 13500eacf860c2f4f98eb04fb37ba06c97491393131bed3104245361f3bd133c

Contents?: true

Size: 352 Bytes

Versions: 45

Compression:

Stored size: 352 Bytes

Contents

require 'delegate'
require_relative 'content_image'

class ContentItemPresenter < SimpleDelegator
  include ContentImage

  def certification_metadata(&block)
    yield(source.certification_metadata) if source.certification_metadata.present?
  end

  def completed_class
    'completed' if source.completed?
  end

  def source
    __getobj__
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
woople-theme-0.3.01 app/presenters/content_item_presenter.rb
woople-theme-0.3.0 app/presenters/content_item_presenter.rb
woople-theme-0.2.49 app/presenters/content_item_presenter.rb
woople-theme-0.2.48 app/presenters/content_item_presenter.rb
woople-theme-0.2.47 app/presenters/content_item_presenter.rb
woople-theme-0.2.46 app/presenters/content_item_presenter.rb
woople-theme-0.2.45 app/presenters/content_item_presenter.rb
woople-theme-0.2.44 app/presenters/content_item_presenter.rb
woople-theme-0.2.43 app/presenters/content_item_presenter.rb
woople-theme-0.2.42 app/presenters/content_item_presenter.rb
woople-theme-0.2.41 app/presenters/content_item_presenter.rb
woople-theme-0.2.40 app/presenters/content_item_presenter.rb
woople-theme-0.2.39 app/presenters/content_item_presenter.rb
woople-theme-0.2.38 app/presenters/content_item_presenter.rb
woople-theme-0.2.37 app/presenters/content_item_presenter.rb
woople-theme-0.2.36 app/presenters/content_item_presenter.rb
woople-theme-0.2.35 app/presenters/content_item_presenter.rb
woople-theme-0.2.34 app/presenters/content_item_presenter.rb
woople-theme-0.2.33 app/presenters/content_item_presenter.rb
woople-theme-0.2.32 app/presenters/content_item_presenter.rb