Class: Hooloo::Company
- Inherits:
-
MozartHash
- Object
- MozartHash
- Hooloo::Company
- Defined in:
- lib/hooloo/company.rb
Overview
Represents a publisher of videos on Hulu
Class Method Summary collapse
-
.list(args = {}) ⇒ Object
Provides a list of all companies on Hulu.
Methods inherited from MozartHash
bool, cast, date, field_mapping, #initialize, #inspect, #method_missing, #respond_to?
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
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 |