app/business_logic/services/ptp/movie.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module Services
  module Ptp
    class Movie < Dry::Struct
      transform_keys do |key|
        key.to_s.underscore.downcase.to_sym
      end

      attribute :title, Types::String
      attribute :auth_key, Types::String
      attribute :imdb_id, Types::String.optional

      attribute :releases, Types::Array.of(Services::Ptp::Release)
    end
  end
end