Sha256: 387c3f0e2c1c4a4d2da9b48892f98feb7e1809ae2d4d738c4a48fe64c34b91b8

Contents?: true

Size: 984 Bytes

Versions: 1

Compression:

Stored size: 984 Bytes

Contents

# encoding: utf-8

module AfrLoad
    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

Version data entries

1 entries across 1 versions & 1 rubygems

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