Class: AfrLoad::TvProgram
- Inherits:
-
Object
- Object
- AfrLoad::TvProgram
- Defined in:
- lib/afr_load/tv_program.rb
Instance Attribute Summary collapse
-
#leading_actor ⇒ Object
Returns the value of attribute leading_actor.
-
#movie_director ⇒ Object
Returns the value of attribute movie_director.
-
#on_air_date ⇒ Object
Returns the value of attribute on_air_date.
-
#on_air_end ⇒ Object
Returns the value of attribute on_air_end.
-
#on_air_start ⇒ Object
Returns the value of attribute on_air_start.
-
#released_country ⇒ Object
Returns the value of attribute released_country.
-
#released_year ⇒ Object
Returns the value of attribute released_year.
-
#supporting_actor ⇒ Object
Returns the value of attribute supporting_actor.
-
#title ⇒ Object
Returns the value of attribute title.
-
#title_ja ⇒ Object
Returns the value of attribute title_ja.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ TvProgram
constructor
A new instance of TvProgram.
- #show ⇒ Object
Constructor Details
#initialize {|_self| ... } ⇒ TvProgram
Returns a new instance of TvProgram.
12 13 14 |
# File 'lib/afr_load/tv_program.rb', line 12 def initialize() yield(self) if block_given? end |
Instance Attribute Details
#leading_actor ⇒ Object
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 |
#movie_director ⇒ Object
Returns the value of attribute movie_director.
5 6 7 |
# File 'lib/afr_load/tv_program.rb', line 5 def movie_director @movie_director end |
#on_air_date ⇒ Object
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 |
#on_air_end ⇒ Object
Returns the value of attribute on_air_end.
5 6 7 |
# File 'lib/afr_load/tv_program.rb', line 5 def on_air_end @on_air_end end |
#on_air_start ⇒ Object
Returns the value of attribute on_air_start.
5 6 7 |
# File 'lib/afr_load/tv_program.rb', line 5 def on_air_start @on_air_start end |
#released_country ⇒ Object
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
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
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
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
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
16 17 18 19 20 21 22 23 |
# File 'lib/afr_load/tv_program.rb', line 16 def show() instance_variables.each do |var| k = var.to_s.tr("@","") v = instance_variable_get(var) print "#{k}: #{v}, " end puts end |