Class: Lomax::Recording
- Inherits:
-
Object
- Object
- Lomax::Recording
- Defined in:
- lib/lomax/recording.rb
Instance Attribute Summary collapse
-
#contributors ⇒ Object
Returns the value of attribute contributors.
-
#date ⇒ Object
Returns the value of attribute date.
-
#place ⇒ Object
Returns the value of attribute place.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title, contributors, date, place) ⇒ Recording
constructor
A new instance of Recording.
- #split_recording ⇒ Object
Constructor Details
#initialize(title, contributors, date, place) ⇒ Recording
Returns a new instance of Recording.
4 5 6 7 8 9 10 |
# File 'lib/lomax/recording.rb', line 4 def initialize(title,contributors,date,place) @title = title @contributors = contributors @date = date @place = place end |
Instance Attribute Details
#contributors ⇒ Object
Returns the value of attribute contributors.
2 3 4 |
# File 'lib/lomax/recording.rb', line 2 def contributors @contributors end |
#date ⇒ Object
Returns the value of attribute date.
2 3 4 |
# File 'lib/lomax/recording.rb', line 2 def date @date end |
#place ⇒ Object
Returns the value of attribute place.
2 3 4 |
# File 'lib/lomax/recording.rb', line 2 def place @place end |
#title ⇒ Object
Returns the value of attribute title.
2 3 4 |
# File 'lib/lomax/recording.rb', line 2 def title @title end |
Instance Method Details
#split_recording ⇒ Object
12 13 14 15 16 |
# File 'lib/lomax/recording.rb', line 12 def split_recording separated_title = self.title.split("; ") return separated_title #this is an array end |