Class: Zype::ProgramGuides

Inherits:
BaseModel show all
Defined in:
lib/zype/models/program_guides.rb

Overview

Since:

  • 0.8.0

Constant Summary

Constants inherited from BaseModel

BaseModel::ACCEPTED_KEYS

Instance Attribute Summary

Attributes inherited from BaseModel

#client, #path

Instance Method Summary collapse

Methods inherited from BaseModel

#all, #auth=, #create, #delete, #find, #initialize, #update

Constructor Details

This class inherits a constructor from Zype::BaseModel

Instance Method Details

#entries(id:) ⇒ Array<Hash>

Returns the entries for the specified program guide

Parameters:

  • id (String)

    the ID of the program guide

Returns:

  • (Array<Hash>)

    the program guide entries

Since:

  • 0.8.0



10
11
12
# File 'lib/zype/models/program_guides.rb', line 10

def entries(id:)
  client.execute(method: :get, path: "/#{path}/#{id}/entries")
end