Class: MediaInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/etvnet_seek/core/media_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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

Returns:

  • (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

Returns:

  • (Boolean)


12
13
14
# File 'lib/etvnet_seek/core/media_info.rb', line 12

def session_expired?
  @session_expired
end