Sha256: 47b78a16271054835bec84d296af20d62916fcd2835b97a109d0dfd63383d326

Contents?: true

Size: 319 Bytes

Versions: 6

Compression:

Stored size: 319 Bytes

Contents

module Spreaker
  class Episode
    attr_reader :properties

    def initialize(properties:)
      @properties = properties
    end

    def id
      properties["episode_id"]
    end

    def method_missing(m, *args, &block)
      return properties[m.to_s] if properties.has_key?(m.to_s)

      super
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spreaker-0.1.6 lib/spreaker/episode.rb
spreaker-0.1.5 lib/spreaker/episode.rb
spreaker-0.1.4 lib/spreaker/episode.rb
spreaker-0.1.3 lib/spreaker/episode.rb
spreaker-0.1.2 lib/spreaker/episode.rb
spreaker-0.1.1 lib/spreaker/episode.rb