Class: M4S::Layout::Mdat

Inherits:
Atom
  • Object
show all
Defined in:
lib/m4s/layout/mdat.rb

Instance Attribute Summary collapse

Attributes inherited from Atom

#cache, #segment_index, #track

Instance Method Summary collapse

Methods inherited from Atom

generate, #generate

Constructor Details

#initialize(cache, opts = {}) ⇒ Mdat

Returns a new instance of Mdat.



7
8
9
10
# File 'lib/m4s/layout/mdat.rb', line 7

def initialize(cache, opts = {})
  super(cache, opts)
  @source = opts.fetch(:source)
end

Instance Attribute Details

#sourceObject (readonly)

Returns the value of attribute source.



5
6
7
# File 'lib/m4s/layout/mdat.rb', line 5

def source
  @source
end

#track_idObject (readonly)

Returns the value of attribute track_id.



5
6
7
# File 'lib/m4s/layout/mdat.rb', line 5

def track_id
  @track_id
end