| Class | Scrobbler::Chart |
| In: |
lib/scrobbler/chart.rb
|
| Parent: | Base |
# File lib/scrobbler/chart.rb, line 8
8: def initialize(from, to)
9: raise ArgumentError, "From is required" if from.blank?
10: raise ArgumentError, "To is required" if to.blank?
11: @from = from
12: @to = to
13: end
# File lib/scrobbler/chart.rb, line 4 4: def new_from_xml(xml, doc) 5: Chart.new(xml['from'], xml['to']) 6: end