Sha256: 961594e4fc4818428b8bb73ffd0ca13d82e2fac204d87458e321aff1294f12bc
Contents?: true
Size: 529 Bytes
Versions: 25
Compression:
Stored size: 529 Bytes
Contents
require_relative 'cacheable' require_relative 'active_record_shim' module WCC module Media class Base include WCC::Media::Cacheable include WCC::Media::ActiveRecordShim attr_reader :raw, :headers def initialize(raw, headers = {}) @raw = raw @headers = headers end def id raw['id']&.to_s end def legacy_id raw['legacy_id']&.to_s end def _links OpenStruct.new(raw['_links']) if raw['_links'] end end end end
Version data entries
25 entries across 25 versions & 1 rubygems