Sha256: 1f8e5cf3c6a8737e4380a6f42cf24de4084ccee6cfec94cea826efcae18acef5

Contents?: true

Size: 592 Bytes

Versions: 25

Compression:

Stored size: 592 Bytes

Contents

require_relative 'base'

class WCC::Media::Series < WCC::Media::Base
  active_record_shim do
    filters %w[
      begin_on_or_before_date
      begin_on_or_after_date
      end_on_or_before_date
      end_on_or_after_date
      tag_id
      speaker_id
      scripture_book_id
      title_like
      legacy_id
    ]
  end

  %w[
    title
    subtitle
    summary
    date_range
    messages_count
  ].each do |att|
    define_method att do
      raw[att]
    end
  end

  %w[
    images
  ].each do |att|
    define_method att do
      OpenStruct.new(raw[att]) if raw[att]
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
wcc-media-client-0.4.12 lib/wcc/media/series.rb
wcc-media-client-0.4.11 lib/wcc/media/series.rb
wcc-media-client-0.4.10 lib/wcc/media/series.rb
wcc-media-client-0.4.9 lib/wcc/media/series.rb
wcc-media-client-0.4.8 lib/wcc/media/series.rb
wcc-media-client-0.4.7 lib/wcc/media/series.rb
wcc-media-client-0.4.6 lib/wcc/media/series.rb
wcc-media-client-0.4.5 lib/wcc/media/series.rb
wcc-media-client-0.4.4 lib/wcc/media/series.rb
wcc-media-client-0.4.3 lib/wcc/media/series.rb
wcc-media-client-0.4.2 lib/wcc/media/series.rb
wcc-media-client-0.4.1 lib/wcc/media/series.rb
wcc-media-client-0.4.0 lib/wcc/media/series.rb
wcc-media-client-0.3.8 lib/wcc/media/series.rb
wcc-media-client-0.3.7 lib/wcc/media/series.rb
wcc-media-client-0.3.6 lib/wcc/media/series.rb
wcc-media-client-0.3.5 lib/wcc/media/series.rb
wcc-media-client-0.3.3 lib/wcc/media/series.rb
wcc-media-client-0.3.2 lib/wcc/media/series.rb
wcc-media-client-0.3.1 lib/wcc/media/series.rb