Class: Bulldog::Attachment::Video::Track

Inherits:
Object
  • Object
show all
Defined in:
lib/bulldog/attachment/video.rb

Direct Known Subclasses

AudioTrack, VideoTrack

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Track

Returns a new instance of Track.



135
136
137
138
139
# File 'lib/bulldog/attachment/video.rb', line 135

def initialize(attributes={})
  attributes.each do |name, value|
    send("#{name}=", value)
  end
end

Instance Attribute Details

#durationObject

Returns the value of attribute duration.



141
142
143
# File 'lib/bulldog/attachment/video.rb', line 141

def duration
  @duration
end