# encoding: utf-8 module AfrLoad class TvProgram attr_reader :on_air_date, :title_ja, :title, :released_year, :released_country, :movie_director, :leading_actor, :supporting_actor def initialize(on_air_date:, title_ja:, title:, released_year:, released_country:, movie_director:, leading_actor:, supporting_actor:) @on_air_date = on_air_date @title_ja = title_ja @title = title @released_year = released_year @released_country = released_country @movie_director = movie_director @leading_actor = leading_actor @supporting_actor = supporting_actor end def show() puts <<"EOS" on_air_date: #{@on_air_date}, \ title_ja: #{@title_ja}, \ title: #{@title}, \ released_year: #{@released_year}, \ released_country: #{@released_country}, \ movie_director: #{@movie_director}, \ leading_actor: #{@leading_actor}, \ supporting_actor: #{@supporting_actor} EOS end end end