Sha256: 4da9e5aa5063fe6c24ed8aca27612230ab83ba49afb970a8d1f0b7fdf9a7fe9c

Contents?: true

Size: 332 Bytes

Versions: 1

Compression:

Stored size: 332 Bytes

Contents

require_relative 'base'

class WCC::Media::Tag < WCC::Media::Base
  active_record_shim do
    endpoint 'tags'
    filters %w[
      name_like
    ]
  end

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

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

  %w[
    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/tag.rb