Class: Tvteka::Show

Inherits:
Object
  • Object
show all
Defined in:
lib/tvteka/show.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Show

Returns a new instance of Show.



6
7
8
9
10
# File 'lib/tvteka/show.rb', line 6

def initialize(params = {})
  params.each do |k, v|
    self.send("#{k}=", v)
  end
end

Instance Attribute Details

#availObject

Returns the value of attribute avail.



4
5
6
# File 'lib/tvteka/show.rb', line 4

def avail
  @avail
end

#beginningObject

Returns the value of attribute beginning.



4
5
6
# File 'lib/tvteka/show.rb', line 4

def beginning
  @beginning
end

#beginning_realObject

Returns the value of attribute beginning_real.



4
5
6
# File 'lib/tvteka/show.rb', line 4

def beginning_real
  @beginning_real
end

#beginning_strObject

Returns the value of attribute beginning_str.



4
5
6
# File 'lib/tvteka/show.rb', line 4

def beginning_str
  @beginning_str
end

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'lib/tvteka/show.rb', line 4

def description
  @description
end

#endedObject

Returns the value of attribute ended.



4
5
6
# File 'lib/tvteka/show.rb', line 4

def ended
  @ended
end

#endingObject

Returns the value of attribute ending.



4
5
6
# File 'lib/tvteka/show.rb', line 4

def ending
  @ending
end

#ending_realObject

Returns the value of attribute ending_real.



4
5
6
# File 'lib/tvteka/show.rb', line 4

def ending_real
  @ending_real
end

#ending_strObject

Returns the value of attribute ending_str.



4
5
6
# File 'lib/tvteka/show.rb', line 4

def ending_str
  @ending_str
end

#heightObject

Returns the value of attribute height.



4
5
6
# File 'lib/tvteka/show.rb', line 4

def height
  @height
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/tvteka/show.rb', line 4

def id
  @id
end

Returns the value of attribute link.



4
5
6
# File 'lib/tvteka/show.rb', line 4

def link
  @link
end

#streaming_urlsObject

Returns the value of attribute streaming_urls.



4
5
6
# File 'lib/tvteka/show.rb', line 4

def streaming_urls
  @streaming_urls
end

#thumb_urlObject

Returns the value of attribute thumb_url.



4
5
6
# File 'lib/tvteka/show.rb', line 4

def thumb_url
  @thumb_url
end

#titleObject

Returns the value of attribute title.



4
5
6
# File 'lib/tvteka/show.rb', line 4

def title
  @title
end

#videostatusObject

Returns the value of attribute videostatus.



4
5
6
# File 'lib/tvteka/show.rb', line 4

def videostatus
  @videostatus
end

#widthObject

Returns the value of attribute width.



4
5
6
# File 'lib/tvteka/show.rb', line 4

def width
  @width
end

Class Method Details

.init_from_array(params_array = []) ⇒ Object



12
13
14
# File 'lib/tvteka/show.rb', line 12

def self.init_from_array(params_array = [])
  params_array.map {|params| Tvteka::Show.new(params)}
end