Class: Lomax::Recording

Inherits:
Object
  • Object
show all
Defined in:
lib/lomax/recording.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contributorsObject

Returns the value of attribute contributors.



2
3
4
# File 'lib/lomax/recording.rb', line 2

def contributors
  @contributors
end

#dateObject

Returns the value of attribute date.



2
3
4
# File 'lib/lomax/recording.rb', line 2

def date
  @date
end

#placeObject

Returns the value of attribute place.



2
3
4
# File 'lib/lomax/recording.rb', line 2

def place
  @place
end

#titleObject

Returns the value of attribute title.



2
3
4
# File 'lib/lomax/recording.rb', line 2

def title
  @title
end

Instance Method Details

#split_recordingObject



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