Class: AfrLoad::TvProgram
- Inherits:
-
Object
- Object
- AfrLoad::TvProgram
- Defined in:
- lib/afr_load/tv_program.rb
Instance Attribute Summary collapse
-
#leading_actor ⇒ Object
readonly
Returns the value of attribute leading_actor.
-
#on_air_date ⇒ Object
readonly
Returns the value of attribute on_air_date.
-
#released_country ⇒ Object
readonly
Returns the value of attribute released_country.
-
#released_year ⇒ Object
readonly
Returns the value of attribute released_year.
-
#supporting_actor ⇒ Object
readonly
Returns the value of attribute supporting_actor.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#title_ja ⇒ Object
readonly
Returns the value of attribute title_ja.
Instance Method Summary collapse
-
#initialize(on_air_date:, title_ja:, title:, released_year:, released_country:, leading_actor:, supporting_actor:) ⇒ TvProgram
constructor
A new instance of TvProgram.
- #show ⇒ Object
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_actor ⇒ Object (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_date ⇒ Object (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_country ⇒ Object (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_year ⇒ Object (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_actor ⇒ Object (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 |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'lib/afr_load/tv_program.rb', line 5 def title @title end |
#title_ja ⇒ Object (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
#show ⇒ Object
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 |