Skip to content

Add to_h serialization to playlists and items#63

Merged
sethdeckard merged 1 commit into
masterfrom
add-to-h-serialization
May 23, 2026
Merged

Add to_h serialization to playlists and items#63
sethdeckard merged 1 commit into
masterfrom
add-to-h-serialization

Conversation

@sethdeckard

Copy link
Copy Markdown
Owner

Add a Serializable mixin that converts an item's instance variables into a JSON-compatible Hash, handling nested byte ranges, program date-times, big decimals, and client attributes. Include it in every item class and ByteRange.

Add Playlist#to_h, which renders top-level attributes plus each item as a Hash tagged with an :item_type key.

Add a Serializable mixin that converts an item's instance
variables into a JSON-compatible Hash, handling nested byte
ranges, program date-times, big decimals, and client
attributes. Include it in every item class and ByteRange.

Add Playlist#to_h, which renders top-level attributes plus
each item as a Hash tagged with an :item_type key.
@sethdeckard
sethdeckard merged commit 75f4947 into master May 23, 2026
4 checks passed
@sethdeckard
sethdeckard deleted the add-to-h-serialization branch May 23, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant