Class: Yt::Models::Timestamp
- Inherits:
-
Time
- Object
- Time
- Yt::Models::Timestamp
- Defined in:
- lib/yt/models/timestamp.rb
Overview
Extend Time to have .to_json return the format needed to submit timestamp to YouTube API. Only needed while we support ActiveSupport 3.
Instance Method Summary collapse
Instance Method Details
#as_json(options = nil) ⇒ Object
7 8 9 |
# File 'lib/yt/models/timestamp.rb', line 7 def as_json( = nil) utc.iso8601(3) end |