Sha256: 8f811e94fe51bc18416176dfe456e738074fc96da43ad6b92993a014ed4ad62e

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

# encoding: utf-8

module AfrLoad
    module TvProgram
        class TvProgram
            attr_reader :on_air_date,
                :title_ja, :title,
                :released_year, :released_country,
                :leading_actor, :supporting_actor

            def initialize(on_air_date:, title_ja:, title:,
                          released_year:, released_country:,
                          leading_actor:, supporting_actor:)
                @on_air_date = on_air_date
                @title_ja = title_ja
                @title = title
                @released_year = released_year
                @released_country = released_country
                @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}, \
leading_actor: #{@leading_actor}, \
supporting_actor: #{@supporting_actor}
EOS
            end
        end
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
afr_load-0.1.1 lib/afr_load/tv_program.rb