Sha256: 238a9ecba1838593b5db18dd5f8293749f616ff38f88d592e4a2a6e1094b649f

Contents?: true

Size: 380 Bytes

Versions: 1

Compression:

Stored size: 380 Bytes

Contents

require_relative 'base'

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

  def id
    raw['id']&.to_s
  end

  def legacy_id
    raw['legacy_id']&.to_s
  end

  %w[
    featured
    name
  ].each do |att|
    define_method att do
      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/speaker.rb