Sha256: ebfb507886469db76659a7ffb469555e5c53f7b98fb24e782cbe28f4abbccb55

Contents?: true

Size: 659 Bytes

Versions: 9

Compression:

Stored size: 659 Bytes

Contents

require 'poms'

# You can build a search params hash using Poms::Api::Search
query = Poms::Api::Search.build(starts_at: Time.now, ends_at: 2.weeks.from_now)

# And use it to query the poms API
Poms.descendants('VPWON_1251179', query)
# => Returns all media that is a descendant of the media by the given mid, and
# was broadcasted between now and next week

# This example will fetch all media that is of type "BROADCAST"
query = Poms::Api::Search.build(starts_at: Time.now, type: 'BROADCAST')

# Use it
Poms.descendants('VPWON_1251179', query)
# => Returns all media that is a descendant of the media by the given mid, has
# not aired yet and is a broadcast

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
poms-2.1.3 examples/search.rb
poms-2.1.2.1 examples/search.rb
poms-2.1.2 examples/search.rb
poms-2.1.1 examples/search.rb
poms-2.1.0 examples/search.rb
poms-2.0.1 examples/search.rb
poms-2.0.0 examples/search.rb
poms-2.0.0.b examples/search.rb
poms-2.0.0.a examples/search.rb