Sha256: cf2a0f3db058482dd01851c2cbe5adb33abf3d9f4c9f65364473dbc0970f8954

Contents?: true

Size: 452 Bytes

Versions: 9

Compression:

Stored size: 452 Bytes

Contents

# frozen_string_literal: true

require_relative 'base'

class WCC::Media::Speaker < WCC::Media::Base
  active_record_shim do
    endpoint 'speakers'
    filters %w[
      featured
      name_like
      tag_id
    ]
  end

  %w[
    name
  ].each do |att|
    define_method att do
      raw[att]
    end
  end

  %w[
    searchable
    featured
  ].each do |att|
    define_method att do
      raw[att]
    end
    alias_method "#{att}?", att
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
wcc-media-client-0.7.5 lib/wcc/media/speaker.rb
wcc-media-client-0.7.4 lib/wcc/media/speaker.rb
wcc-media-client-0.7.3 lib/wcc/media/speaker.rb
wcc-media-client-0.7.2 lib/wcc/media/speaker.rb
wcc-media-client-0.7.1 lib/wcc/media/speaker.rb
wcc-media-client-0.7.0 lib/wcc/media/speaker.rb
wcc-media-client-0.6.1 lib/wcc/media/speaker.rb
wcc-media-client-0.6.0 lib/wcc/media/speaker.rb
wcc-media-client-0.5.0 lib/wcc/media/speaker.rb