Class: Sofa::TVRage::Season

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

Overview

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

Instance Method Summary collapse

Methods included from Mapping

included

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



31
32
33
# File 'lib/sofa/tvrage/season.rb', line 31

def initialize(info)
  update_with_mapping(info)
end