Class: MediaInfo
- Inherits:
-
Object
- Object
- MediaInfo
- Defined in:
- lib/etvnet_seek/core/media_info.rb
Instance Attribute Summary collapse
-
#link ⇒ Object
readonly
Returns the value of attribute link.
Instance Method Summary collapse
-
#initialize(link) ⇒ MediaInfo
constructor
A new instance of MediaInfo.
- #resolved? ⇒ Boolean
- #session_expired? ⇒ Boolean
Constructor Details
#initialize(link) ⇒ MediaInfo
Returns a new instance of MediaInfo.
4 5 6 |
# File 'lib/etvnet_seek/core/media_info.rb', line 4 def initialize link @link = link end |
Instance Attribute Details
#link ⇒ Object (readonly)
Returns the value of attribute link.
2 3 4 |
# File 'lib/etvnet_seek/core/media_info.rb', line 2 def link @link end |
Instance Method Details
#resolved? ⇒ Boolean
8 9 10 |
# File 'lib/etvnet_seek/core/media_info.rb', line 8 def resolved? not @link.nil? and not @link.strip.size == 0 end |
#session_expired? ⇒ Boolean
12 13 14 |
# File 'lib/etvnet_seek/core/media_info.rb', line 12 def session_expired? @session_expired end |