Class: SfFilmLocations::Location
- Inherits:
-
Object
- Object
- SfFilmLocations::Location
- Defined in:
- lib/sf_film_locations.rb
Instance Attribute Summary collapse
-
#actor_1 ⇒ Object
readonly
Returns the value of attribute actor_1.
-
#actor_2 ⇒ Object
readonly
Returns the value of attribute actor_2.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hash) ⇒ Location
constructor
A new instance of Location.
Constructor Details
#initialize(hash) ⇒ Location
Returns a new instance of Location.
9 10 11 12 13 14 |
# File 'lib/sf_film_locations.rb', line 9 def initialize(hash) @location = hash["locations"] @title = hash["title"] @actor_1 = hash["actor_1"] @actor_2 = hash["actor_2"] end |
Instance Attribute Details
#actor_1 ⇒ Object (readonly)
Returns the value of attribute actor_1.
7 8 9 |
# File 'lib/sf_film_locations.rb', line 7 def actor_1 @actor_1 end |
#actor_2 ⇒ Object (readonly)
Returns the value of attribute actor_2.
7 8 9 |
# File 'lib/sf_film_locations.rb', line 7 def actor_2 @actor_2 end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
7 8 9 |
# File 'lib/sf_film_locations.rb', line 7 def location @location end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
7 8 9 |
# File 'lib/sf_film_locations.rb', line 7 def title @title end |