Sha256: f58c11281190fd57b68ba622dc16eafcd4718ea536e2b3971b196f47e2e7f903
Contents?: true
Size: 678 Bytes
Versions: 1
Compression:
Stored size: 678 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 def id raw['id']&.to_s end def legacy_id raw['legacy_id']&.to_s 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wcc-media-client-0.2.0 | lib/wcc/media/series.rb |