Class: Hooloo::Company

Inherits:
MozartHash show all
Defined in:
lib/hooloo/company.rb

Overview

Represents a publisher of videos on Hulu

Class Method Summary collapse

Methods inherited from MozartHash

bool, cast, date, field_mapping, float, #initialize, #inspect, #method_missing, #respond_to?, uri

Constructor Details

This class inherits a constructor from Hooloo::MozartHash

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Hooloo::MozartHash

Class Method Details

.list(args = {}) ⇒ Object

Provides a list of all companies on Hulu

Parameters:

  • args (Hash) (defaults to: {})

    (see Hooloo#request)



6
7
8
# File 'lib/hooloo/company.rb', line 6

def self.list(args={})
  Hooloo.request('companies', args)['data'].map { |x| new x['company'] }
end