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 {|_self| ... } ⇒ TvProgram

Returns a new instance of TvProgram.

Yields:

  • (_self)

Yield Parameters:



12
13
14
# File 'lib/afr_load/tv_program.rb', line 12

def initialize()
  yield(self) if block_given?
end

Instance Attribute Details

#leading_actorObject

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_directorObject

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_dateObject

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_endObject

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_startObject

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_countryObject

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

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

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

Returns the value of attribute title.



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

def title
  @title
end

#title_jaObject

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



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