Class: EventMachine::Sofa::TVRage::Episode
- Inherits:
-
Object
- Object
- EventMachine::Sofa::TVRage::Episode
- Includes:
- Mapping
- Defined in:
- lib/em-sofa/tvrage/episode.rb
Overview
This class holds the XML information of a single episode as per the TVRage API.
Instance Attribute Summary collapse
-
#season_num ⇒ Object
readonly
The season number of the Season this Episode belongs to.
Instance Method Summary collapse
-
#initialize(info) ⇒ Episode
constructor
Returns a new instance of Episode, mapping info from the TVRage API.
Constructor Details
#initialize(info) ⇒ Episode
Returns a new instance of Episode, mapping info from the TVRage API
35 36 37 |
# File 'lib/em-sofa/tvrage/episode.rb', line 35
def initialize(info)
update_with_mapping(info)
end
|
Instance Attribute Details
#season_num ⇒ Object (readonly)
The season number of the Season this Episode belongs to. Not actually a part of the TVRage API, but it's used to inject the +season_num+ when looping through Episodes in a Season.
23 24 25 |
# File 'lib/em-sofa/tvrage/episode.rb', line 23
def season_num
@season_num
end
|