Class: AfrLoad::TvProgram

Inherits:
Object
  • Object
show all
Defined in:
lib/afr_load/tv_program.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(on_air_date:, title_ja:, title:, released_year:, released_country:, leading_actor:, supporting_actor:) ⇒ TvProgram

Returns a new instance of TvProgram.



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/afr_load/tv_program.rb', line 10

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

Instance Attribute Details

#leading_actorObject (readonly)

Returns the value of attribute leading_actor.



5
6
7
# File 'lib/afr_load/tv_program.rb', line 5

def leading_actor
  @leading_actor
end

#on_air_dateObject (readonly)

Returns the value of attribute on_air_date.



5
6
7
# File 'lib/afr_load/tv_program.rb', line 5

def on_air_date
  @on_air_date
end

#released_countryObject (readonly)

Returns the value of attribute released_country.



5
6
7
# File 'lib/afr_load/tv_program.rb', line 5

def released_country
  @released_country
end

#released_yearObject (readonly)

Returns the value of attribute released_year.



5
6
7
# File 'lib/afr_load/tv_program.rb', line 5

def released_year
  @released_year
end

#supporting_actorObject (readonly)

Returns the value of attribute supporting_actor.



5
6
7
# File 'lib/afr_load/tv_program.rb', line 5

def supporting_actor
  @supporting_actor
end

#titleObject (readonly)

Returns the value of attribute title.



5
6
7
# File 'lib/afr_load/tv_program.rb', line 5

def title
  @title
end

#title_jaObject (readonly)

Returns the value of attribute title_ja.



5
6
7
# File 'lib/afr_load/tv_program.rb', line 5

def title_ja
  @title_ja
end

Instance Method Details

#showObject



22
23
24
25
26
27
28
29
30
31
32
# File 'lib/afr_load/tv_program.rb', line 22

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