Class: EventMachine::Sofa::TVRage::Season

Inherits:
Object
  • Object
show all
Includes:
Mapping
Defined in:
lib/em-sofa/tvrage/season.rb

Overview

This class holds the XML information of a single season as per the TVRage API.

Instance Method Summary collapse

Constructor Details

#initialize(info) ⇒ Season

Returns a new instance of Season, mapping info from the TVRage API

Parameters:

  • info (Hash<Symbol, Object>)

    Info to initialize with

Options Hash (info):

  • :no (String)

    The season number

  • :episode (String)

    The collection of episodes



32
33
34
# File 'lib/em-sofa/tvrage/season.rb', line 32

def initialize(info)
  update_with_mapping(info)
end